Commit 680c87dd authored by Grzegorz Bizon's avatar Grzegorz Bizon

Make build trace chunks flush worker idempotent

parent 06a3f976
......@@ -897,7 +897,7 @@
:urgency: :low
:resource_boundary: :unknown
:weight: 1
:idempotent:
:idempotent: true
:tags: []
- :name: pipeline_background:ci_daily_build_group_report_results
:feature_category: :continuous_integration
......
# 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|
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment