Replies: 2 comments 3 replies
-
Not sure if this is what you need from unique_for, but I created this check (for postgres) to avoid scheduling duplicate jobs:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the idea, and thanks @jtwaleson for the suggestion! I believe we can implement this function for each queue type here. Once implemented, this function would be available in AppContext like this: app_context.queue_provider.unwrap().has_similar_job_in_queue() This means you’ll be able to use the same functionality across all our workers. For example, @jtwaleson, if you were to migrate from Postgres to another supported queue, it would be more challenging without this. (The function name has_similar_job_in_queue is just an example.) Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
Rusty sidekiq has a
unique_for
option for the worker. Are there any plans to expose/implement this?Beta Was this translation helpful? Give feedback.
All reactions