No need to increase timer on dead workers

This commit is contained in:
Ilan Steemers
2015-07-01 15:00:15 +02:00
parent 2397314a99
commit cbd0ed5243
+1
View File
@@ -233,6 +233,7 @@ class Sentinel(object):
# Are you alive?
if not p.is_alive() or (Conf.TIMEOUT and int(p.timer.value) >= Conf.TIMEOUT):
self.reincarnate(p)
continue
# Increment timer if work is being done
if p.timer.value >= 0:
p.timer.value += 1