Merge pull request #3396 from omnivore-app/fix/queue-redis-connection

use worker redis client when connect to the queue in queue-processor
This commit is contained in:
Hongbo Wu 2024-01-19 21:03:20 +08:00 committed by GitHub
commit fb1d8331a4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -61,7 +61,9 @@ const main = async () => {
throw '[queue-processor] error redis is not initialized'
}
const queue = new Queue(QUEUE_NAME)
const queue = new Queue(QUEUE_NAME, {
connection: workerRedisClient,
})
const worker = new Worker(
QUEUE_NAME,