diff --git a/app/sidekiq/terms_of_use/sign_up_service_updater_job.rb b/app/sidekiq/terms_of_use/sign_up_service_updater_job.rb index 307797272e8..d0edfc38f8e 100644 --- a/app/sidekiq/terms_of_use/sign_up_service_updater_job.rb +++ b/app/sidekiq/terms_of_use/sign_up_service_updater_job.rb @@ -7,8 +7,7 @@ module TermsOfUse class SignUpServiceUpdaterJob include Sidekiq::Job - sidekiq_options unique_for: 2.days - sidekiq_options retry: 15 # 2.1 days using exponential backoff + sidekiq_options retry: 5 # ~17 mins sidekiq_retries_exhausted do |job, exception| Rails.logger.warn( diff --git a/spec/sidekiq/terms_of_use/sign_up_service_updater_job_spec.rb b/spec/sidekiq/terms_of_use/sign_up_service_updater_job_spec.rb index 65086fbcbc0..25a6fbd12bc 100644 --- a/spec/sidekiq/terms_of_use/sign_up_service_updater_job_spec.rb +++ b/spec/sidekiq/terms_of_use/sign_up_service_updater_job_spec.rb @@ -23,8 +23,8 @@ allow(Sidekiq::AttrPackage).to receive(:delete) end - it 'retries 15 times after failure' do - expect(described_class.get_sidekiq_options['retry']).to eq(15) + it 'retries 5 times after failure' do + expect(described_class.get_sidekiq_options['retry']).to eq(5) end it 'logs a message when retries have been exhausted' do @@ -45,8 +45,6 @@ ) end - it { is_expected.to be_unique } - context 'when the terms of use agreement is accepted' do before do allow(service_instance).to receive(:agreements_accept)