-
Notifications
You must be signed in to change notification settings - Fork 25
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
Can't set 0 retries #61
Comments
I think you have to periodically call |
@nvonpentz - @moteus is right that the best thing to do is to periodically call |
Thank you @moteus and @dlecocq. I don't think I can call Setting a long heartbeat ( > than 1 hour) solved the problem of the job retrying @dlecocq. We should be able to set 0 retries though, no? |
You can run query in a separate thread or process |
@nvonpentz - I just looked through |
I have a job that makes a database query that takes around an hour to complete. For some reason qless thinks the process has stalled when it hasn't and attempts to retry the job. This happens 5 times so the process takes 5 hours instead of 1 hour.
I try to set
retries=0
as a workaround, but it doesn't work (I think) because of this line:qless-py/qless/queue.py
Line 98 in 3eda4ff
since
0 or 5
evaluates to 5, I can't set 0 retries.The text was updated successfully, but these errors were encountered: