-
Notifications
You must be signed in to change notification settings - Fork 405
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
[Bug]: Workers functioning locally but not with Cloud Redis instance #2808
Comments
When you say "stop working" what do you mean? they work for some time, 1 minute, 1 day? and then stop processing jobs, or they never processed jobs at all? Have you checked that the workers are connected to Redis? |
Hello @manast, I'm following up on my initial message now that I have more details. I have two queues:
And two associated workers:
The time reminder queue handles simple jobs, and I just realized that locally or in production, it doesn't cause any issues.
However, the cron reminder queue handles job schedulers, and while it works perfectly locally, it causes issues when pointing to my Cloud Redis instance. I'm unsure if nothing is happening or if the cron expressions are causing the problem in production but not locally?
Let me know if you'd like any further info. |
What does "it causes issues" mean? |
The worker is not triggered when it should be. I don't know if it ever will be or if it will be at some point, but definitely not at the right time. |
Check on the delayed jobs to see if there are any and when they have been scheduled. |
Okay, so two things: First, I wasn’t setting the time zone correctly on the scheduler, which caused a mismatch between when I expected the worker to run and when it was actually scheduled. But in the end, everything is working properly now. |
Happy that it did work at the end, I will put more effort in documenting the timezone parameter. |
Version
v5.16.0
Platform
NodeJS
What happened?
Hi there, I'm a bit lost 😅.
I’m using BullMQ in my back-end (Strapi) to manage sending reminders. I have two queues (time-reminders and cron-reminders), each with its own worker. Everything works perfectly when I'm pointing to my local Redis instance.
The problem arises when I switch to the Redis Cloud instance I’ve set up. The workers stop functioning, and I’m not sure what’s going wrong.
I’m happy to provide more details if needed.
Any guidance or ideas would be greatly appreciated!
How to reproduce.
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: