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

How many times is a job retried based on the attempts we declare when adding a job in queue? #1396

Closed
sanyaldips93 opened this issue Aug 30, 2022 · 0 comments

Comments

@sanyaldips93
Copy link

Hi

I have experimenting with the 'attempts' option while adding a job to a queue for sometime now. As per my understanding from bull documentation, the job is retried as many times as declared while adding after it has failed. So when we declare attempts : 3, the job should be tried 1+3(fresh attempts + reattempts) times if we consider it has been failing all the time.

Official documentation : https://docs.bullmq.io/guide/retrying-failing-jobs
However, in the github docs it says something different : https://github.com/OptimalBits/bull/blob/develop/REFERENCE.md#queueadd

Could you please clarify how many times will a job get retried if attempt is 'n' ? and will those attempts include the fresh attempt as well?

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

1 participant