Skip to content

Commit

Permalink
Reduce max number of retries for Sidekiq jobs to 3
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
floehopper committed Dec 19, 2023
1 parent 513fdfa commit 83c5b69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/jobs/application_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 83c5b69

Please sign in to comment.