From 9d6f38df0e7629962004f82021e0ed45dd488e2c Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Sun, 10 May 2020 17:40:07 +0700 Subject: [PATCH] Slightly increase job key timeout in monitor_work_horse() --- rq/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):