Open nullndr opened 1 month ago
Unfortunately there is not a lot for us to go for with this information... are there jobs in the wait list, or delayed, are all the expected workers actually online?
The jobs are not delayed ones, so they should be in the wait list.
are all the expected workers actually online?
Is there a simple way I can check this? Also what is the reason for which they can go offline?
The jobs are not delayed ones, so they should be in the wait list.
Could you please verify that this is the case, as "should" here seems to imply you do not know for sure...
Is there a simple way I can check this? Also what is the reason for which they can go offline?
You can use Taskforce.sh or any other frontend to check which workers are online for a given queue.
Could you please verify that this is the case, as "should" here seems to imply you do not know for sure...
Yeah, as soon we will face the same issue I will check it
You can use Taskforce.sh or any other frontend to check which workers are online for a given queue.
Sadly I use AWS MemoryDB and it is not possible to connect it outside AWS resources, I am thinking about writing a little script that use Queue.getWorkers()
, is this the correct way to check this?
Also, I took a look again at the docs and found out about the listener for the error
event:
I will add it and check again.
I can confirm they are in the waiting status
hey @nullndr could you connection to your redis instances and executed monitor, let us know which commands are executing while waiting jobs are not processed
@roggervalf I will try, in the meantime I downgraded to 5.1.12
, I'll test all versions to bisect the exact commit.
You can use Taskforce.sh or any other frontend to check which workers are online for a given queue.
Sadly I use AWS MemoryDB and it is not possible to connect it outside AWS resources, I am thinking about writing a little script that use
Queue.getWorkers()
, is this the correct way to check this?
This scenario is very common, if you Redis instance is isolated you should use the Taskforce connector: https://github.com/taskforcesh/taskforce-connector
You can use getWorkers as you mention to get the list of online workers.
I can confirm they are in the waiting status
And the workers are idling and online?
I have been able to connect my AWS memorydb to taskforce.sh, but the dashboard shows no workers in any queue.
I think this is because I have missing the name
option in WorkersOptions
since I had to downgrade bullmq to 5.1.12
, I will try minor upgrades until I found the issue.
It could also be that MemoryDB does not implement this command: https://redis.io/docs/latest/commands/client-setname/ but I could not find in the documentation of MemoryDB that this is not the case.
Version
5.12.12
Platform
NodeJS
What happened?
I was using bullmq 5.6 where I suffered the issue https://github.com/taskforcesh/bullmq/issues/2466.
After upgrading to 5.12 some workers suddenly stop processing jobs, actually I think they got stuck since I was unable to gracefully shut them down with the following code that works flawless in 5.6:
My configs for the queues, workers and flows are the following:
The sudden stop of processing them can be easily seen in the memorydb metrics:
Please tell me how can I provide you more usefull informations.