scheduler heart for acquired locks only (#1710)

main
Miles Winter 2 years ago committed by GitHub
parent fd116b33db
commit 108c2ea666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save