summaryrefslogtreecommitdiff
path: root/rq/worker.py
diff options
context:
space:
mode:
Diffstat (limited to 'rq/worker.py')
-rw-r--r--rq/worker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rq/worker.py b/rq/worker.py
index 46ace25..e745eef 100644
--- a/rq/worker.py
+++ b/rq/worker.py
@@ -814,7 +814,7 @@ class Worker:
with self.connection.pipeline() as pipeline:
self.heartbeat(self.job_monitoring_interval + 60, pipeline=pipeline)
ttl = self.get_heartbeat_ttl(job)
- job.heartbeat(utcnow(), ttl, pipeline=pipeline)
+ job.heartbeat(utcnow(), ttl, pipeline=pipeline, xx=True)
pipeline.execute()
except OSError as e: