Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
680c87dd
Commit
680c87dd
authored
Sep 04, 2020
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make build trace chunks flush worker idempotent
parent
06a3f976
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
app/workers/all_queues.yml
app/workers/all_queues.yml
+1
-1
app/workers/ci/build_trace_chunk_flush_worker.rb
app/workers/ci/build_trace_chunk_flush_worker.rb
+3
-1
No files found.
app/workers/all_queues.yml
View file @
680c87dd
...
...
@@ -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
...
...
app/workers/ci/build_trace_chunk_flush_worker.rb
View file @
680c87dd
# 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
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment