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

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

23 lines
511 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class PagesWorker # rubocop:disable Scalability/IdempotentWorker
include ApplicationWorker
data_consistency :always
2018-03-05 07:57:48 -05:00
sidekiq_options retry: 3
feature_category :pages
loggable_arguments 0, 1
worker_resource_boundary :cpu
2015-12-18 07:07:53 -05:00
def perform(action, *arg)
send(action, *arg) # rubocop:disable GitlabSecurity/PublicSend
2015-12-18 07:07:53 -05:00
end
def deploy(build_id)
build = Ci::Build.find_by_id(build_id)
Projects::UpdatePagesService.new(build.project, build).execute
2015-12-18 07:07:53 -05:00
end
end