otp: reuse utcnow (#1115)

main
Chyroc 6 years ago committed by Selwin Ong
parent f9d42e8a17
commit d0884be929

@ -261,7 +261,7 @@ class Worker(object):
with self.connection.pipeline() as p:
p.delete(key)
now = utcnow()
now_in_string = utcformat(utcnow())
now_in_string = utcformat(now)
self.birth_date = now
p.hset(key, 'birth', now_in_string)
p.hset(key, 'last_heartbeat', now_in_string)

Loading…
Cancel
Save