mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 22:28:11 +08:00
No need to increase timer on dead workers
This commit is contained in:
@@ -233,6 +233,7 @@ class Sentinel(object):
|
|||||||
# Are you alive?
|
# Are you alive?
|
||||||
if not p.is_alive() or (Conf.TIMEOUT and int(p.timer.value) >= Conf.TIMEOUT):
|
if not p.is_alive() or (Conf.TIMEOUT and int(p.timer.value) >= Conf.TIMEOUT):
|
||||||
self.reincarnate(p)
|
self.reincarnate(p)
|
||||||
|
continue
|
||||||
# Increment timer if work is being done
|
# Increment timer if work is being done
|
||||||
if p.timer.value >= 0:
|
if p.timer.value >= 0:
|
||||||
p.timer.value += 1
|
p.timer.value += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user