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
70974d52
Commit
70974d52
authored
Sep 27, 2021
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable deduplication for ExpireJobCacheWorker
parent
dab58c88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
app/workers/all_queues.yml
app/workers/all_queues.yml
+1
-1
app/workers/expire_job_cache_worker.rb
app/workers/expire_job_cache_worker.rb
+3
-5
No files found.
app/workers/all_queues.yml
View file @
70974d52
...
...
@@ -1418,7 +1418,7 @@
:urgency: :high
:resource_boundary: :unknown
:weight:
3
:idempotent:
:idempotent:
true
:tags: []
-
:name: pipeline_cache:expire_pipeline_cache
:worker_name: ExpirePipelineCacheWorker
...
...
app/workers/expire_job_cache_worker.rb
View file @
70974d52
...
...
@@ -10,11 +10,9 @@ class ExpireJobCacheWorker # rubocop:disable Scalability/IdempotentWorker
queue_namespace
:pipeline_cache
urgency
:high
# This worker should be idempotent, but we're switching to data_consistency
# :sticky and there is an ongoing incompatibility, so it needs to be disabled for
# now. The following line can be uncommented and this comment removed once
# https://gitlab.com/gitlab-org/gitlab/-/issues/325291 is resolved.
# idempotent!
deduplicate
:until_executing
,
including_scheduled:
true
idempotent!
# rubocop: disable CodeReuse/ActiveRecord
def
perform
(
job_id
)
...
...
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