fix a little bug
This commit is contained in:
parent
a1c166bb09
commit
25ba87423d
|
@ -156,7 +156,7 @@ class Worker(object):
|
|||
|
||||
# send heardbeat package to keep alive in etcd, ttl=2s
|
||||
def sendheartbeat(self):
|
||||
while(true):
|
||||
while(True):
|
||||
# check send heartbeat package every 1s
|
||||
time.sleep(1)
|
||||
[status, value] = self.etcd.getkey("machines/runnodes/"+self.addr)
|
||||
|
|
Loading…
Reference in New Issue