2020-08-25 20:10:31 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2021-02-08 13:09:49 -05:00
|
|
|
# TODO: remove this worker https://gitlab.com/gitlab-org/gitlab/-/issues/320775
|
2020-08-25 20:10:31 -04:00
|
|
|
class PagesRemoveWorker # rubocop:disable Scalability/IdempotentWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
|
|
|
|
sidekiq_options retry: 3
|
|
|
|
feature_category :pages
|
|
|
|
loggable_arguments 0
|
|
|
|
|
|
|
|
def perform(project_id)
|
|
|
|
project = Project.find_by_id(project_id)
|
|
|
|
return unless project
|
|
|
|
|
2021-02-08 13:09:49 -05:00
|
|
|
project.legacy_remove_pages
|
2020-08-25 20:10:31 -04:00
|
|
|
end
|
|
|
|
end
|