debian-mirror-gitlab/app/workers/pages_remove_worker.rb
2021-06-08 01:23:25 +05:30

18 lines
460 B
Ruby

# frozen_string_literal: true
# TODO: remove this worker https://gitlab.com/gitlab-org/gitlab/-/issues/320775
class PagesRemoveWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
sidekiq_options retry: 3
feature_category :pages
tags :exclude_from_kubernetes
loggable_arguments 0
def perform(project_id)
project = Project.find_by_id(project_id)
return unless project
project.legacy_remove_pages
end
end