Disable built-in Sidekiq retry for verification workers

parent 21a21d04
......@@ -8,6 +8,8 @@ module Geo
include GeoQueue
include ExclusiveLeaseGuard
sidekiq_options retry: false
LEASE_TIMEOUT = 1.hour.to_i
attr_reader :project
......
......@@ -9,6 +9,8 @@ module Geo
include ExclusiveLeaseGuard
include Gitlab::Geo::ProjectLogHelpers
sidekiq_options retry: false
LEASE_TIMEOUT = 1.hour.to_i
attr_reader :registry
......
......@@ -12,6 +12,14 @@ describe Geo::RepositoryVerification::Primary::SingleWorker, :clean_gitlab_redis
stub_current_geo_node(primary)
end
it 'disables retrying of failed jobs' do
expect(subject.sidekiq_options_hash).to eq(
'retry' => false,
'queue' => 'geo:geo_repository_verification_primary_single',
'queue_namespace' => :geo
)
end
describe '#perform' do
it 'does not calculate the checksum when not running on a primary' do
allow(Gitlab::Geo).to receive(:primary?) { false }
......
......@@ -12,6 +12,14 @@ describe Geo::RepositoryVerification::Secondary::SingleWorker, :clean_gitlab_red
stub_current_geo_node(secondary)
end
it 'disables retrying of failed jobs' do
expect(subject.sidekiq_options_hash).to eq(
'retry' => false,
'queue' => 'geo:geo_repository_verification_secondary_single',
'queue_namespace' => :geo
)
end
describe '#perform' do
it 'does not calculate the checksum when not running on a secondary' do
allow(Gitlab::Geo).to receive(:secondary?) { false }
......
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