debian-mirror-gitlab/app/workers/pages_remove_worker.rb

18 lines
428 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
2021-03-11 19:13:27 +05:30
# TODO: remove this worker https://gitlab.com/gitlab-org/gitlab/-/issues/320775
2020-11-24 15:15:51 +05:30
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-03-11 19:13:27 +05:30
project.legacy_remove_pages
2020-11-24 15:15:51 +05:30
end
end