Skip to content

Commit

Permalink
mv need_sync scope
Browse files Browse the repository at this point in the history
  • Loading branch information
kuizhiqing committed Jul 30, 2021
1 parent 86cdb5c commit d249d45
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/paddle/distributed/fleet/elastic.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def __init__(self, args):
self.stopped = False

self.sigint = 0
self.need_sync = False

if not server or ':' not in server or not name or not np:
logger.info(
Expand Down Expand Up @@ -172,8 +173,6 @@ def __init__(self, args):
# register watch to reset host after host been deleted
self.etcd.delete_prefix(self.node_prefix)

self.need_sync = False

def host_call_back(event):
if self.etcd.get(self.host_path)[0] == None:
logger.info('register host again {}'.format(self.host))
Expand Down

1 comment on commit d249d45

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.