Commit a1f4c5b3 authored by David Fernandez's avatar David Fernandez

Merge branch '357850-reduce-enqueuer-lease-timeout' into 'master'

Reduce EnqueuerWorker lease timeout

See merge request gitlab-org/gitlab!84403
parents 03c3af0d 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
......
......@@ -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
......
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