You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the scheduler requires a dedicated redis connection I duplicate the redisClient from super.
But when I close the scheduler the redis client is still connected. Am I supposed to manage that connection outside the scheduler?
I tried it on the latest version of bullmq - 1.86.4
Thanks.
The text was updated successfully, but these errors were encountered:
Neither the Queue or the QueueScheduler takes ownership of the Redis connection if you pass a Redis client, so you need to close the connection yourself. In the QueueScheduler case, you do not need to perform a duplicate, this is done automatically by the QueueScheduler if needed, and will clean up any new connections it creates when you close it.
Hi,
I have a class wrapping both a queue and it's queue scheduler.
the code looks something like that:
Since the scheduler requires a dedicated redis connection I duplicate the redisClient from
super
.But when I close the
scheduler
the redis client is still connected. Am I supposed to manage that connection outside the scheduler?I tried it on the latest version of bullmq -
1.86.4
Thanks.
The text was updated successfully, but these errors were encountered: