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

Include retry exhaustion in the Job API for job status #2428

Open
JonathanSun opened this issue Feb 15, 2024 · 1 comment
Open

Include retry exhaustion in the Job API for job status #2428

JonathanSun opened this issue Feb 15, 2024 · 1 comment

Comments

@JonathanSun
Copy link

Is your feature request related to a problem? Please describe.
We would like to show the status of a job in our UI when failed/completed, without being sensitive to the number of retries. It's difficult to distinguish a failed job (that is going to retry) vs. a failed job that has exhausted its retries using the Job API. It seems like the status of retries being exhausted is only available via QueueEvents.

Describe the solution you'd like
A field on Job like retriesLeft or retriesExhausted that can be polled to see if the job is going to retry on failure.

Describe alternatives you've considered
Using the QueueEvents API to return the retry status to the UI is more complicated, and does not mix well with polling for job status.

@manast
Copy link
Contributor

manast commented Feb 15, 2024

A job that is in the failed status has actually exhausted all its retries, otherwise it would be in the delayed status waiting for the next retry.

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

2 participants