-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
incorrect :until_and_while_executing
behavior
#424
Comments
I think the second job quits because the first job already has a lock on the 'running' key. I have the same issue, tried resolving it with the I have a job that should not be run simultaneously but if it gets scheduled while another instance of the same job is already running, it should wait for that instance to finish and then run again. Is this possible with sidekiq unique jobs? |
reschedule doesn't work with the first part @robinsingh-bw. If you want, give Please in that case do try out the worker validation. v7 will allow you to configure the client and server conflict resolutions separately. |
Tried the beta, the client/server conflict resolution doesnt seem to be fully implemented yet so had to create a hack:
Btw which keys does v7 use? I need to check if a unique job is scheduled, I am doing this atm:
Should I continue checking for both keys or can it be replaced with one of them - which one? Thanks |
Reverted to v6 :p, might wanna update the readme for v7 btw as people running on heroku will likely run into the above error. |
What redis version are you on @robinsingh-bw? I've been testing with the latest redis and it works fine locally at least and also on travis. |
@mhenrixon I am using Redis Cloud on Heroku. Not sure which version it is, but the error has to do with permissions, user scripts are not allowed to run the |
That is a real bummer but I can certainly work around that. Will create a PR to fix it and I will get back to you on the other questions. The |
Fixes #424 (comment) Signed-off-by: Mika Hel <mikael@zoolutions.se>
@robinsingh-bw #431 will fix the problem with scripts not being allowed to retrieve server info I hope. If not then you'll have to ask your provider nicely to enable such information for all the performance gains! :D |
* Pass redis_version into scripts Fixes #424 (comment) Signed-off-by: Mika Hel <mikael@zoolutions.se> * Remove mindless debug instructions
Describe the bug
enqueue the job with
until_and_while_executing
lock policy 2 times with interval 1 secondExpected behavior
second job should be performed right after first job finished
Current behavior
second job is not performed
Worker class
Additional context
here is a log from 'sidekiq', '5.2.5' and 'sidekiq-unique-jobs', '5.0.10', second job has been performed
and this is from 'sidekiq', '6.0.0', 'sidekiq-unique-jobs', '6.0.13', only first job has been actually performed
The text was updated successfully, but these errors were encountered: