Welcome to mirror list, hosted at ThFree Co, Russian Federation.

pages_remove_worker.rb « workers « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 67ea18545a73d3c48c0df37e607af3414cb2f532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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
  loggable_arguments 0

  def perform(project_id)
    project = Project.find_by_id(project_id)
    return unless project

    project.legacy_remove_pages
  end
end