mhenrixon / sidekiq-unique-jobs

Prevents duplicate Sidekiq jobs
MIT License
1.46k stars 277 forks source link

Conflict resolution documentation #692

Open philipbeber opened 2 years ago

philipbeber commented 2 years ago

Describe the bug The paragraph in the introduction describing conflict resolution stops mid-sentence: By default, only one lock for a given hash can be acquired. What happens when a lock can't be acquired is governed by a chosen [Conflict Strategy](https://github.com/mhenrixon/sidekiq-unique-jobs#conflict-strategy) strategy. Unless a conflict strategy is chosen

Expected behavior It would be nice to know:

Additional context Great gem! Thanks for providing this. It is very useful.

exterm commented 1 year ago

This would indeed be very helpful. I've spent some time reading through the code and it looks like the default confliect resolution strategy is [the null strategy(https://github.com/mhenrixon/sidekiq-unique-jobs/blob/main/lib/sidekiq_unique_jobs/on_conflict/null_strategy.rb). However, I'm not quite sure what behavior that entails.