worker.register_birth() should set a slightly longer worker key TTL (#1284)

This commit is contained in:
Selwin Ong 2020-06-28 18:37:13 +07:00 committed by GitHub
parent 2fdff2471c
commit 34eec5fee5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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