2018-11-08 19:23:39 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
class PipelineUpdateWorker
|
2018-03-17 18:26:18 +05:30
|
|
|
include ApplicationWorker
|
2016-11-03 12:29:30 +05:30
|
|
|
include PipelineQueue
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
queue_namespace :pipeline_processing
|
2020-04-08 14:13:33 +05:30
|
|
|
urgency :high
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
idempotent!
|
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
def perform(pipeline_id)
|
2020-03-09 13:42:32 +05:30
|
|
|
Ci::Pipeline.find_by_id(pipeline_id)&.update_legacy_status
|
2016-11-03 12:29:30 +05:30
|
|
|
end
|
|
|
|
end
|