Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add on_conflict to global config #865

Open
bdegomme opened this issue Jan 21, 2025 · 0 comments
Open

Add on_conflict to global config #865

bdegomme opened this issue Jan 21, 2025 · 0 comments

Comments

@bdegomme
Copy link

bdegomme commented Jan 21, 2025

Is your feature request related to a problem? Please describe.
I don't want to add a "on_conflict" parameter in each job

Describe the solution you'd like
A global on_conflict parameter, to be used like

SidekiqUniqueJobs.configuration do |config|
  config.on_conflict = :log
end

And that can still be overwritten in specific jobs. Same as lock_ttl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant