debian-mirror-gitlab/app/workers/stage_update_worker.rb
2021-06-08 01:23:25 +05:30

18 lines
298 B
Ruby

# frozen_string_literal: true
class StageUpdateWorker
include ApplicationWorker
sidekiq_options retry: 3
include PipelineQueue
queue_namespace :pipeline_processing
urgency :high
idempotent!
def perform(stage_id)
Ci::Stage.find_by_id(stage_id)&.update_legacy_status
end
end