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
352645d5
Commit
352645d5
authored
Apr 05, 2022
by
Steve Abrams
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce EnqueuerWorker lease timeout
Reduce the EnqueuerWorker lease timeout from 1 hour to 30 minutes.
parent
d853a87a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/workers/container_registry/migration/enqueuer_worker.rb
app/workers/container_registry/migration/enqueuer_worker.rb
+1
-1
spec/workers/container_registry/migration/enqueuer_worker_spec.rb
...kers/container_registry/migration/enqueuer_worker_spec.rb
+1
-1
No files found.
app/workers/container_registry/migration/enqueuer_worker.rb
View file @
352645d5
...
...
@@ -8,7 +8,7 @@ module ContainerRegistry
include
Gitlab
::
Utils
::
StrongMemoize
include
ExclusiveLeaseGuard
DEFAULT_LEASE_TIMEOUT
=
1
.
hour
.
to_i
.
freeze
DEFAULT_LEASE_TIMEOUT
=
30
.
minutes
.
to_i
.
freeze
data_consistency
:always
feature_category
:container_registry
...
...
spec/workers/container_registry/migration/enqueuer_worker_spec.rb
View file @
352645d5
...
...
@@ -261,7 +261,7 @@ RSpec.describe ContainerRegistry::Migration::EnqueuerWorker, :aggregate_failures
let
(
:lease_key
)
{
worker
.
send
(
:lease_key
)
}
before
do
stub_exclusive_lease_taken
(
lease_key
,
timeout:
1
.
hour
)
stub_exclusive_lease_taken
(
lease_key
,
timeout:
30
.
minutes
)
end
it
'does not perform'
do
...
...
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