Redis Singleton Instace via create factory fails with set Promotion:Lock
- Dominant language
- JavaScript
- Stars
- 9.4k
- Forks
- 858
- PR merge metrics
- No merged PRs in 30d
Description
Trying to use singleton redis client with through kue under which I am getting this issue:-
Am I doing any thing wrong :-
I just keep getting these two lines in my log and nothing happens until time out.
ioredis:redis write command[127.0.0.1:6379]: 0 -> set([ 'promotion:lock', 'LB+WEMyOEeiOhNtmySv7aw==', 'PX', '2000', 'NX' ]) +999ms
ioredis:redis write command[127.0.0.1:6379]: 0 -> set([ 'activeJobsTTL:lock', 'LCAyUMyOEeiOhNtmySv7aw==', 'PX', '2000', 'NX' ]) +3ms
F
Please advise. What is happening here and is it possible to use a singleton Redis Client along with Kue.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by examining how Kue creates and shares its ioredis client, then reproduce the timeout with the logged SET commands for promotion:lock and activeJobsTTL:lock. Determine whether a singleton Redis client is supported and document or fix the locking behavior so the queue proceeds without timing out.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js, redis
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100