|
|
|
|
|
by shrimpx
2415 days ago
|
|
A global job timeout might be unreasonable with high variance in workload. Eg some jobs taking 0.5 seconds and others 30 seconds. You might set a global timeout of say 60s but it sucks to wait 59.5s to reap that short job whose worker crashed. A better system is to make workers update a timestamp on an interval and you reap any jobs that haven't been updated in N seconds. |
|
Maybe simply using a timeout per job type is a better way. (That of course trades off simplicity.)