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

14 lines
279 B
Ruby
Raw Normal View History

2018-11-08 19:23:39 +05:30
# frozen_string_literal: true
2016-11-03 12:29:30 +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
2019-12-26 22:10:19 +05:30
latency_sensitive_worker!
2018-03-17 18:26:18 +05:30
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