diff options
Diffstat (limited to 'app/workers/ci')
-rw-r--r-- | app/workers/ci/build_trace_chunk_flush_worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/ci/build_trace_chunk_flush_worker.rb b/app/workers/ci/build_trace_chunk_flush_worker.rb index 43a19f8a6d6..2908c7c2d0b 100644 --- a/app/workers/ci/build_trace_chunk_flush_worker.rb +++ b/app/workers/ci/build_trace_chunk_flush_worker.rb @@ -1,10 +1,12 @@ # frozen_string_literal: true module Ci - class BuildTraceChunkFlushWorker # rubocop:disable Scalability/IdempotentWorker + class BuildTraceChunkFlushWorker include ApplicationWorker include PipelineBackgroundQueue + idempotent! + # rubocop: disable CodeReuse/ActiveRecord def perform(chunk_id) ::Ci::BuildTraceChunk.find_by(id: chunk_id).try do |chunk| |