-
Notifications
You must be signed in to change notification settings - Fork 368
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
waitUntilFinished hang if removeOnComplete is set without TTL #85
Comments
ok, seems like a bug to me. Would you mind to provide a small snippet that reproduces the issue that we can use as a test case? |
Here is a reproduction repo I made to check: https://github.com/Embraser01/bullmq-issue-85 It gives the percentage of jobs that hit the TTL with and without |
Just found this - @Embraser01 did you find any way to work around this? If you set
|
I added a recurrent job that just clean jobs that have completed from more than X seconds (like 15/30s) |
🎉 This issue has been resolved in version 1.46.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
When using the
removeOnComplete
option on a job, calling thewaitUntilFinished
will have an undefined behavior (unless ttl has been set).If it's called before the job is cleared from the queue, it will work as intended but if the job is already removed, it will just hang indefinitely.
I think the
waitUntilFinished
function should warn the user ifremoveOn...
is set as it may never resolve.The text was updated successfully, but these errors were encountered: