diff options
Diffstat (limited to 'app/workers/pipeline_update_worker.rb')
-rw-r--r-- | app/workers/pipeline_update_worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/pipeline_update_worker.rb b/app/workers/pipeline_update_worker.rb index 7f667057af6..267caa5bedd 100644 --- a/app/workers/pipeline_update_worker.rb +++ b/app/workers/pipeline_update_worker.rb @@ -1,12 +1,14 @@ # frozen_string_literal: true -class PipelineUpdateWorker # rubocop:disable Scalability/IdempotentWorker +class PipelineUpdateWorker include ApplicationWorker include PipelineQueue queue_namespace :pipeline_processing urgency :high + idempotent! + def perform(pipeline_id) Ci::Pipeline.find_by_id(pipeline_id)&.update_legacy_status end |