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
50c4d326
Commit
50c4d326
authored
Nov 18, 2020
by
Mike Kozono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix RegistryConsistencyWorker reenqueuing
parent
0be059c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
app/workers/concerns/reenqueuer.rb
app/workers/concerns/reenqueuer.rb
+1
-0
spec/support/shared_examples/workers/concerns/reenqueuer_shared_examples.rb
...d_examples/workers/concerns/reenqueuer_shared_examples.rb
+4
-0
No files found.
app/workers/concerns/reenqueuer.rb
View file @
50c4d326
...
...
@@ -37,6 +37,7 @@ module Reenqueuer
include
ReenqueuerSleeper
sidekiq_options
retry:
false
deduplicate
:none
end
def
perform
(
*
args
)
...
...
spec/support/shared_examples/workers/concerns/reenqueuer_shared_examples.rb
View file @
50c4d326
...
...
@@ -10,6 +10,10 @@ RSpec.shared_examples 'reenqueuer' do
expect
(
subject
.
lease_timeout
).
to
be_a
(
ActiveSupport
::
Duration
)
end
it
'uses the :none deduplication strategy'
do
expect
(
subject
.
class
.
get_deduplicate_strategy
).
to
eq
(
:none
)
end
describe
'#perform'
do
it
'tries to obtain a lease'
do
expect_to_obtain_exclusive_lease
(
subject
.
lease_key
)
...
...
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