Skip to content

Queue.getWorkers() vs. Worker:id mismatch? #2681

Answered by andrisi
andrisi asked this question in Q&A
Discussion options

You must be logged in to vote

Solution to get the identifier from the Worker class, the same you get with the getWorkers() call, which is actually the Redis client id of one of the the connections used.

let client = await worker.blockingConnection._client
const id = (await client.client('ID'))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by andrisi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant