gitlab-org--gitlab-foss/app/workers/destroy_pages_deployments_worker.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
434 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class DestroyPagesDeploymentsWorker
include ApplicationWorker
data_consistency :always
idempotent!
loggable_arguments 0, 1
sidekiq_options retry: 3
feature_category :pages
def perform(project_id, last_deployment_id = nil)
project = Project.find_by_id(project_id)
return unless project
::Pages::DestroyDeploymentsService.new(project, last_deployment_id).execute
end
end