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

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

20 lines
326 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class StageUpdateWorker
include ApplicationWorker
data_consistency :always
sidekiq_options retry: 3
include PipelineQueue
2017-11-28 16:16:50 +00:00
queue_namespace :pipeline_processing
urgency :high
idempotent!
def perform(stage_id)
Ci::Stage.find_by_id(stage_id)&.update_legacy_status
end
end