Skip to content

Commit

Permalink
test(sdk): add more output.
Browse files Browse the repository at this point in the history
Signed-off-by: Electronic-Waste <[email protected]>
  • Loading branch information
Electronic-Waste committed Jul 31, 2024
1 parent 92a3bea commit d8b0120
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sdk/python/v1beta1/kubeflow/katib/api/katib_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,15 @@ def wait_for_experiment_condition(

# Otherwise, print the current Experiment results and sleep for the pooling interval.
utils.print_experiment_status(experiment)
import subprocess
result = subprocess.run(['kubectl', 'get', 'pod', '-n', 'kubeflow'])
logger.debug(
f"Pods in kubeflow namespace:\n{result.stdout}"
)
result = subprocess.run(['kubectl', 'get', 'pod', '-n', 'default'])
logger.debug(
f"Pods in default namespace:\n{result.stdout}"
)
logger.debug(
f"Waiting for Experiment: {namespace}/{name} to reach {expected_condition} condition\n\n\n"
)
Expand Down

0 comments on commit d8b0120

Please sign in to comment.