Skip to content
This repository has been archived by the owner on Jan 10, 2019. It is now read-only.

unfinished jobs should auto-cancel? #20

Open
jfischl opened this issue May 4, 2012 · 1 comment
Open

unfinished jobs should auto-cancel? #20

jfischl opened this issue May 4, 2012 · 1 comment

Comments

@jfischl
Copy link

jfischl commented May 4, 2012

Consider a case where there is a job queue and a worker has taken a job from the queue but has not finished it. While the job is being processed, the worker restarts. It appears that this job will never be given to another worker. Presumably, the jobs should have an optional timeout period after which they will be automatically cancelled.

@fritzy
Copy link
Contributor

fritzy commented May 4, 2012

Yes. I'll add an example manage script. The in-flight jobs are in a zset organized by time, so you can have a manage script occasionally look at these values and retry or stall those jobs.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants