Automattic / kue

Kue is a priority job queue backed by redis, built for node.js.
http://automattic.github.io/kue
MIT License
9.45k stars 862 forks source link

How to close connection for a job type #1218

Open samuelgoldenbaum opened 5 years ago

samuelgoldenbaum commented 5 years ago

From what I see, Kue is creating new Redis connections for every job type. We have a scenario where we have queues for each user so 200 active users with Redis connections can become an issue - especially as I don't see a way to stop processing a job type, thereby closing its underlying Redis connection.

1) Can the Redis connection be shared - from what I see, Kue cannot currently do this? 2) How can a let Kue know that it should no longer process a job type so they underlying connection to Redis is closed?