Skip to content

Commit

Permalink
Add more info when run doesnt complete (mosaicml#2751)
Browse files Browse the repository at this point in the history
  • Loading branch information
aspfohl authored Dec 1, 2023
1 parent 1dccb14 commit b11f7b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/mcli/mcli_pytest.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
print(line, end='')

print('[GHA] Run completed. Waiting for run to finish...')
run = wait_for_run_status(run, status='completed')
run = wait_for_run_status(run, status=RunStatus.COMPLETED)

# Fail if command exited with non-zero exit code or timed out
assert run.status == RunStatus.COMPLETED
# Fail if command exited with non-zero exit code or timed out (didn't reach COMPLETED)
assert run.status == RunStatus.COMPLETED, f'Run {run.name} did not complete: {run.status} ({run.reason})'

0 comments on commit b11f7b6

Please sign in to comment.