mirror of https://github.com/rq/rq.git
worker.register_birth() should set a slightly longer worker key TTL (#1284)
This commit is contained in:
parent
2fdff2471c
commit
34eec5fee5
|
@ -278,7 +278,7 @@ class Worker(object):
|
||||||
'python_version': self.python_version,
|
'python_version': self.python_version,
|
||||||
})
|
})
|
||||||
worker_registration.register(self, p)
|
worker_registration.register(self, p)
|
||||||
p.expire(key, self.default_worker_ttl)
|
p.expire(key, self.default_worker_ttl + 60)
|
||||||
p.execute()
|
p.execute()
|
||||||
|
|
||||||
def register_death(self):
|
def register_death(self):
|
||||||
|
|
Loading…
Reference in New Issue