Queued jobs in redis backend are orphaned if Gearman server dies
When using Redis as the persistence backend, queued jobs are set in Redis like so:
1466949136.176673 [0 127.0.0.1:61635] "SET" "_gear_
redis-cli info | grep db0
-> db0:keys=
(echo 'status'; sleep 0.1) | nc 127.0.0.1 4730
-> process-job 1 0 0
This shows there is 1 job in the queue, and that job is stored in Redis - all fine at this point.
Now, let's say the Gearman server is killed for whatever reason... When Gearman starts up again, it doesn't know about these queued jobs and they are effectively "orphaned".
Is there a workaround for this?
Question information
- Language:
- English Edit question
- Status:
- Open
- For:
- Gearman Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was originally filed as bug #1596303.
Can you help with this problem?
Provide an answer of your own, or ask Danny Kopping for more information if necessary.