Skip to content

Commit

Permalink
set sidekiq_options retry to 3 for the GenericWorker (#2052)
Browse files Browse the repository at this point in the history
Pretty straight forward. Sets the maximum retry count to 3.

Note
We want to add custom retry logic, but that works differently between Sidekiq 5 and 6.
So we think it is better to focus later on the Sidekiq upgrade, and until there, worker instances can handle their exceptions instead of relying on the generic worker for that.

References: 5120, #2005
PR: 2052
  • Loading branch information
vasconsaurus authored Sep 25, 2024
1 parent c166699 commit 269590b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/workers/generic_worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ class GenericWorker

include Sidekiq::Worker

sidekiq_options retry: 3

def perform(klass_name, klass_method, *method_args)
klass = klass_name.constantize
options = method_args.extract_options!.with_indifferent_access
Expand Down

0 comments on commit 269590b

Please sign in to comment.