Skip to content
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

Possible to manually retry a job that has expired? #288

Closed
swrobel opened this issue May 27, 2020 · 2 comments
Closed

Possible to manually retry a job that has expired? #288

swrobel opened this issue May 27, 2020 · 2 comments

Comments

@swrobel
Copy link
Contributor

swrobel commented May 27, 2020

Situation:
error_count has exceeded max_retry_count and expired_at has a value. This job is effectively "dead" and yet I want to manually retry it. How do I do so?

@coffenbacher
Copy link
Contributor

Probably not an ideal solution, but definitely better than the current que-web behavior of not retrying at all, is to reset the error_count to one less than max_retry_count and unset expired_at. That's what I do to manually retry dead jobs when I need to. I would be surprised if anyone is relying so heavily on the accuracy of those values that updating them to allow a retry trips anything up.

Maybe someone has a better idea?

@ZimbiX
Copy link
Member

ZimbiX commented Feb 23, 2022

For a job that's failed several times, I tend to just set the run_at to now() from psql. afaik, I haven't had to retry an expired one, but for that, I'd also set error_count to 0 and expired_at to NULL.

Unless there are ideas for improvement, I'm going to close this, in an effort to clean up the issues list.

@ZimbiX ZimbiX closed this as completed Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants