-
-
Notifications
You must be signed in to change notification settings - Fork 279
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
Not unlocking automatically (version 6.0.0rc5) #293
Comments
Interesting! If you have a look at #289 and #290 the problem with Using the else clause now only unlocks the error if the worker does not raise an error. What you are experiencing seems to be the opposite of that. If you try |
Well, the job does finish, and sidekiq does not crash :( |
I can't replicate that behaviour @nocivus. I'll keep investigating but this should not be happening unless your worker raises an error, sidekiq is shutting down or the job can't be unlocked. It might be that the job refuses to get unlocked for some reason. Would be helpful to get some more information on the key that sits in Redis specifically it's |
I also get this error when I only have: |
Thank you for the feedback @lephyrius. I will dig into this right now and see if I can replicate it using some real world code. |
I really can't replicate the behaviour. The only time this would happen to me is when the worker crashes or sidekiq shuts down which is a required behaviour. When the worker crashes the job will be retried, when Sidekiq shuts down we don't really know if the worker completed or not and we will have to figure this out ourselves. I'll think of a way to make cleaning up these jobs or marking them as need attention or something. Maybe add something to |
@lephyrius @nocivus I've added a more convenient way of dealing with this situation using a custom tab for Unique Digests but I still haven't been able to create a scenario where your problem happens. |
Hi Mika, don't sweat it. Ended up doing a database based :) locking
mechanism for my simple purposes :)
Thanks again!
Pedro
…On Wed, Jul 25, 2018 at 9:44 PM Mika Hel ***@***.***> wrote:
@lephyrius <https://github.com/lephyrius> @nocivus
<https://github.com/nocivus> I've added a more convenient way of dealing
with this situation using a custom tab for Unique Digests but I still
haven't been able to create a scenario where your problem happens.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#293 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAANGfpOW92W4ZnRe-oUV5ryQbKC6Yzrks5uKNiVgaJpZM4VSmPV>
.
|
Describe the bug
Getting this in the sidekiq console when running an unique job:
Expected behavior
Expected the lock to be released so i could enqueue further jobs after this one is finished
Current behavior
No further jobs can be queued.
Worker class
The text was updated successfully, but these errors were encountered: