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

19 lines
460 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
2021-06-08 01:23:25 +05:30
tags :exclude_from_kubernetes
2020-11-24 15:15:51 +05:30
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