From 34eec5fee56fb1d6e00faa1da4469cadd16152dd Mon Sep 17 00:00:00 2001 From: Selwin Ong Date: Sun, 28 Jun 2020 18:37:13 +0700 Subject: [PATCH] worker.register_birth() should set a slightly longer worker key TTL (#1284) --- rq/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/worker.py b/rq/worker.py index 341ac8f..1f91c1a 100644 --- a/rq/worker.py +++ b/rq/worker.py @@ -278,7 +278,7 @@ class Worker(object): 'python_version': self.python_version, }) worker_registration.register(self, p) - p.expire(key, self.default_worker_ttl) + p.expire(key, self.default_worker_ttl + 60) p.execute() def register_death(self):