-
Notifications
You must be signed in to change notification settings - Fork 391
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
Delayed jobs not trigerring every other launch #168
Comments
That sound strange, could you provide a small test case that demonstrate this problem so that I can take a look into it? |
Hello, I spent some time trying to figure out where might be problem. When it stops to work...
always returns null I am using these dependencies.
gist: |
If i create additional QueueSchedulers for each queue, it works even on immediate restarts. @manast Is it okay to create multiple QueueSchedulers for queue ? Or should i expect some weird behavior ? gist: |
it is possible to have more than one for redundancy, but it should work with just one too. |
@pavelserbajlo Were you able to figure out a good workaround for this? I am considering just implementing the delay in memory but that is not preferable bc it defeats the whole purpose of using an redis queue in memory which can be backed by persisted storage. This seems like a critical feature that is not working properly. |
I was evaluating if bullmq is stable enough for my needs and reported my findings here. Since it's not there yet, I'm patiently using bull instead :) |
I can confirm this happens to me as well but having more than one |
I confirm i have the above behaviour (repeated jobs not starting). I have also seen problems with repeated jobs dropping out (no error, just not continuing, see above issue) |
I am looking into this... |
🎉 This issue has been resolved in version 1.8.10 🎉 The release is available on: Your semantic-release bot 📦🚀 |
So as I see from issues and my own experience there is a BIG BIG problem with stalled jobs. That's hard to debug and understand what's going on and why it doesn't work. Now i'm having the issue with repeatable jobs which going stalled just when they launched. I tried different options for QueueScheduler, Worker, etc – no luck. Now that's the main reason to switch off |
@ifokeev do you have some code snippet that reproduces your issue? |
@manast no, because I don't understand the issue really. I have |
What are your jobs doing? stalled jobs happens when your processor is doing a long CPU intensive task. |
@manast they are marked as stalled before running the real task so there are no CPU intensive tasks |
A job cannot be stalled until it is active, it is impossible. If you can provide some code we can look into it, I am afraid there must be some issue with your code. |
Let say I'm scheduling a delayed task (10 seconds), which is normally getting triggered thanks to QueueScheduler listening. This works fine.
Now imagine I schedule the delayed task again, I quit the process and start it again, just so that it is ready before the job would trigger. But it never will, even though I can see in in queue.getDelayed().
I restart the app again an voila! Now it triggers it (since it probably found out it should have been triggered already).
Am I missing some config or anything else important? Thanks for any help.
The text was updated successfully, but these errors were encountered: