mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-20 11:28:34 +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?
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user