You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For context, I have a job that is intentionally unique, but which sometimes wants to re-enqueue a future execution of itself using e.g. MyJob.set(wait: delay, unique_for: false).perform_later(...). Happy to have other suggestions.
If you are using an old version, have you checked the changelogs to see if your issue has been fixed in a later version?
Checked, didn't spot anything.
The text was updated successfully, but these errors were encountered:
It's possible the problem is using a Symbol instead of a String. Sidekiq stringifies everything but I don't know that ActiveJob does. Try "unique_for" => false instead.
Ruby version: 3.1.4p223
Rails version: 6.1.7
Sidekiq / Pro / Enterprise version(s): sidekiq= 7.1.4 / pro 7.1.4 / ent 7.1.2
https://github.com/sidekiq/sidekiq/wiki/Ent-Unique-Jobs#bypassing-or-dynamically-setting-uniqueness describes using
.set(unique_for: ...)
to dynamically set uniqueness on a specific job. This isn't working for me through ActiveJob. Is it supposed to work in ActiveJob? Would I set it the same way?For context, I have a job that is intentionally unique, but which sometimes wants to re-enqueue a future execution of itself using e.g.
MyJob.set(wait: delay, unique_for: false).perform_later(...)
. Happy to have other suggestions.Checked, didn't spot anything.
The text was updated successfully, but these errors were encountered: