2020-02-27 18:09:21 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-10 09:08:35 +00:00
|
|
|
# NOTE: This class is unused and to be removed in 13.1~
|
2020-02-27 18:09:21 +00:00
|
|
|
class PipelineUpdateCiRefStatusWorker # rubocop:disable Scalability/IdempotentWorker
|
|
|
|
include ApplicationWorker
|
|
|
|
include PipelineQueue
|
|
|
|
|
2020-03-02 18:07:42 +00:00
|
|
|
urgency :high
|
2020-02-27 18:09:21 +00:00
|
|
|
worker_resource_boundary :cpu
|
|
|
|
|
|
|
|
def perform(pipeline_id)
|
|
|
|
pipeline = Ci::Pipeline.find_by_id(pipeline_id)
|
|
|
|
|
|
|
|
return unless pipeline
|
|
|
|
|
|
|
|
Ci::UpdateCiRefStatusService.new(pipeline).call
|
|
|
|
end
|
|
|
|
end
|