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
Bug: exception when job processing returns immediately #801
Comments
Can you provide a complete use case that demonstrates the issue? |
I push jobs into a queue based on users' requests that need to be served quickly. If the workers fail and are restarted, lots of jobs like this flood them. I want the jobs to expire after a certain time so this does not happen. Users (or the UI on their behalf) will re-request the actions. The actual problem is that if a worker is too quick to return (immediately) than something seems to go wrong. |
@andrisi can you please provide a code example that reproduces the error? |
Hi @manast
Thanks for help :) Regards |
@rysi3k thanks for the code, I can reproduce it now. |
Ok, so the problem occurs because |
I will close this issue now, also I encourage you to avoid using |
For some type of jobs I'd like to skip them if they've been added to the queue more then a minute ago. Just return from the job processing function, but if I do so, it throws an exception while in the waitUntilFinished() function. If I wait 200ms, there is no exception.
The text was updated successfully, but these errors were encountered: