Skip to content

Commit

Permalink
fix e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanYiLin committed Jun 19, 2020
1 parent 431e91c commit 3eeaed2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py/kubeflow/tf_operator/k8s_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ def wait_for_pods_to_be_in_phases(

is_match = True

if len(pods.items) == 0:
time.sleep(polling_interval.seconds)
continue
# if len(pods.items) == 0:
# time.sleep(polling_interval.seconds)
# continue

for p in pods.items:
if p.status.phase not in phases:
# for debug
logging.info("pod in phase %s", p.status.phase)
is_match = False

if is_match:
if is_match and len(pods.items) != 0:
logging.info("All pods in phase %s", phases)
log_pods(pods)
return pods
Expand Down

0 comments on commit 3eeaed2

Please sign in to comment.