debian-mirror-gitlab/app/workers/pipeline_update_worker.rb

14 lines
314 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
# frozen_string_literal: true
2020-04-08 14:13:33 +05:30
class PipelineUpdateWorker # rubocop:disable Scalability/IdempotentWorker
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
2016-11-03 12:29:30 +05:30
def perform(pipeline_id)
2020-03-13 15:44:24 +05:30
Ci::Pipeline.find_by_id(pipeline_id)&.update_legacy_status
2016-11-03 12:29:30 +05:30
end
end