summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelwin Ong <selwin.ong@gmail.com>2020-05-10 17:40:07 +0700
committerSelwin Ong <selwin.ong@gmail.com>2020-05-10 17:40:07 +0700
commit9d6f38df0e7629962004f82021e0ed45dd488e2c (patch)
treea1e1d1a1b90e111a611794cc26555346812d16a7
parentd8dea02081bde62c39dbcb7190b9245b468e657b (diff)
downloadrq-9d6f38df0e7629962004f82021e0ed45dd488e2c.tar.gz
Slightly increase job key timeout in monitor_work_horse()
-rw-r--r--rq/worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rq/worker.py b/rq/worker.py
index d192462..d4c423d 100644
--- a/rq/worker.py
+++ b/rq/worker.py
@@ -689,7 +689,7 @@ class Worker(object):
except HorseMonitorTimeoutException:
# Horse has not exited yet and is still running.
# Send a heartbeat to keep the worker alive.
- self.heartbeat(self.job_monitoring_interval + 5)
+ self.heartbeat(self.job_monitoring_interval + 30)
# Kill the job from this side if something is really wrong (interpreter lock/etc).
if job.timeout != -1 and (utcnow() - job.started_at).total_seconds() > (job.timeout + 1):