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: b83168fd7bda99dc316ac838684527740b208b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

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.remove_pages
    project.pages_domains.delete_all
  end
end