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
Order messed up? #231
Comments
When jobs are rate limited they are delayed, and if new jobs are arriving constantly it could happen that the order is not preserved. I have a plan to implement rate limiting in a different way that would avoid this behaviour, but currently it works as designed. |
|
failed jobs are not deleted by default. |
#230 Please see this. No matter what I tried, the failed jobs are always removed. And there is some issues with async errors when using concurrency |
This passing test demonstrates that failed jobs are not always removed: https://github.com/taskforcesh/bullmq/blob/master/src/test/test_getters.ts#L111-L136 Please provide a code example that reproduces the issue and I will look into it. |
According to the test, they are available in the Queue, should it manually be added to the queue later on? |
I do not understand what you mean. |
Hey @manast, are there any possible ways to keep the order of the jobs? |
@nguyenvudao for rate limiter not guaranteed at the moment, best effort only. |
When I am adding a limiter to the worker to process 4 jobs, it does that, and doesn't resume from the 5th job, it skips the 5th job and moves over to the sixth job, and this happens at everytime I attach a worker to the queue.
Here is the code
And the output is,
The text was updated successfully, but these errors were encountered: