scheduler heart for acquired locks only (#1710)

This commit is contained in:
Miles Winter 2022-09-22 19:48:38 -05:00 committed by GitHub
parent fd116b33db
commit 108c2ea666
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()