mirror of https://github.com/rq/rq.git
scheduler heart for acquired locks only (#1710)
This commit is contained in:
parent
fd116b33db
commit
108c2ea666
|
@ -184,7 +184,7 @@ class RQScheduler:
|
|||
", ".join(self.acquired_locks))
|
||||
if len(self._queue_names) > 1:
|
||||
with self.connection.pipeline() as pipeline:
|
||||
for name in self._queue_names:
|
||||
for name in self._acquired_locks:
|
||||
key = self.get_locking_key(name)
|
||||
pipeline.expire(key, self.interval + 60)
|
||||
pipeline.execute()
|
||||
|
|
Loading…
Reference in New Issue