From 83c5b69cbe424cf34df479efbcf310e4a0c12019 Mon Sep 17 00:00:00 2001 From: James Mead Date: Tue, 19 Dec 2023 11:03:21 +0000 Subject: [PATCH] Reduce max number of retries for Sidekiq jobs to 3 The default for the `retry` option is `true` which corresponds to 25 retries. Now we've got the Sidekiq UI set up, it's less useful for jobs to keep retrying over several days/weeks, because we can always retry them manually from the Sidekiq morgue. Addresses #103. --- app/jobs/application_job.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/jobs/application_job.rb b/app/jobs/application_job.rb index bef39599..60ba1d59 100644 --- a/app/jobs/application_job.rb +++ b/app/jobs/application_job.rb @@ -6,4 +6,6 @@ class ApplicationJob < ActiveJob::Base # Most jobs are safe to ignore if the underlying records are no longer available # discard_on ActiveJob::DeserializationError + + sidekiq_options retry: 3 end