Skip to content

Commit 6e26bfe

Browse files
committed
polish
1 parent db7b92d commit 6e26bfe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

python/paddle/fluid/tests/unittests/test_dist_base.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def start_pserver(self, model_file):
4343
return ps0_proc, ps1_proc
4444

4545
def _wait_ps_ready(self, pid):
46-
retry_times = 20
46+
retry_times = 50
4747
while True:
4848
assert retry_times >= 0, "wait ps ready failed"
4949
time.sleep(3)
@@ -52,7 +52,9 @@ def _wait_ps_ready(self, pid):
5252
# on the /tmp directory until it was ready to process all the RPC call.
5353
os.stat("/tmp/paddle.%d.port" % pid)
5454
return
55-
except os.error:
55+
except os.error as e:
56+
sys.stderr.write('waiting for pserver: %s, left retry %d\n' %
57+
(e, retry_times))
5658
retry_times -= 1
5759

5860
def check_with_place(self, model_file, delta=1e-3):

0 commit comments

Comments
 (0)