Skip to content

Number of retry on conflict reschedule #331

@LouisLoode

Description

@LouisLoode

First, thanks for your work :)
Is your feature request related to a problem? Please describe.
We have a worker how create or update one of our model with external webhooks, we want to reschedule once or twice the job, not more. Actually we have some of our jobs who have infinite looping in our sidekiq.

Describe the solution you'd like
Just permitte to define max retry for lock option :while_executing and conflict strategy "reschedule", or add some documentation for it if it's already possible ?
sidekiq_options lock: :while_executing, on_conflict: :reschedule

Additional context
We try to do this but it didn't work (infinite loop).

  sidekiq_options lock: :while_executing,
                  unique_args: :unique_args,
                  on_conflict: :reschedule,
                  retry: 5

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions