-
-
Notifications
You must be signed in to change notification settings - Fork 277
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Multiple jobs running at the same time #531
Comments
Any particular reason you are using unique_across_workers? Could you remove that and try without? Also, which gem version are you on? |
Honestly, 'unique_across_workers' was just leftover from trying different options to get anything to work. Same result without it. Using version 5.0.2, as that's the version that installed by default when I included the gem. Any ideas? |
We are experiencing something similar, our options look like this: sidekiq_options queue: :user, lock: :until_executed, backtrace: true, retry: 3, on_conflict: :log
I could understand the first worker picking the job out of super fetch and starting it, but the second is really blowing my mind. |
@loneaggie super fetch gets the job. It isn't a second one, it is the first one being restarted since you have retry turned on. The lock should stay until the worker is done performing the work. Highly recommend giving SidekiqUniqueJobs v7.0.1 a try instead (you too @macmartine) |
Describe the bug
Not sure if this is an issue or user error, but definitely feels like it should be working.
I'm trying to not be able to queue the same job multiple times (while it's already in the queue or running).
Rails 2.5.1 Sidekiq 6.0.6
Expected behavior
I'd expect to not be able to queue/run the same job twiece
Current behavior
Runs the same job multiple times
Worker class
Additional context
Here we kick off some job one after another:
Sidekiq log:
The text was updated successfully, but these errors were encountered: