2018-11-08 19:23:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
class StageUpdateWorker
|
2018-03-17 18:26:18 +05:30
|
|
|
include ApplicationWorker
|
|
|
|
include PipelineQueue
|
|
|
|
|
|
|
|
queue_namespace :pipeline_processing
|
2020-04-08 14:13:33 +05:30
|
|
|
urgency :high
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
idempotent!
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
def perform(stage_id)
|
2020-03-13 15:44:24 +05:30
|
|
|
Ci::Stage.find_by_id(stage_id)&.update_legacy_status
|
2018-03-17 18:26:18 +05:30
|
|
|
end
|
|
|
|
end
|