We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db7b92d commit 6e26bfeCopy full SHA for 6e26bfe
python/paddle/fluid/tests/unittests/test_dist_base.py
@@ -43,7 +43,7 @@ def start_pserver(self, model_file):
43
return ps0_proc, ps1_proc
44
45
def _wait_ps_ready(self, pid):
46
- retry_times = 20
+ retry_times = 50
47
while True:
48
assert retry_times >= 0, "wait ps ready failed"
49
time.sleep(3)
@@ -52,7 +52,9 @@ def _wait_ps_ready(self, pid):
52
# on the /tmp directory until it was ready to process all the RPC call.
53
os.stat("/tmp/paddle.%d.port" % pid)
54
return
55
- except os.error:
+ except os.error as e:
56
+ sys.stderr.write('waiting for pserver: %s, left retry %d\n' %
57
+ (e, retry_times))
58
retry_times -= 1
59
60
def check_with_place(self, model_file, delta=1e-3):
0 commit comments