Skip to content

Commit e625dbf

Browse files
committed
elapsed time for future logging info
1 parent 2fae503 commit e625dbf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

br.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,9 @@ def log_job_output(job_name: str, *, wait: bool, timeout: int | None) -> None:
250250
phase = get_pod_status(pod_name)
251251
if phase in ("Succeeded", "Failed"):
252252
print(f"Pod, {pod_name} finished with phase={phase}")
253+
end = time.monotonic()
254+
# for logging information
255+
elapsed = end - start
253256
break
254257
if timeout and (time.monotonic() - start) > timeout:
255258
print(f"Timeout waiting for pod {pod_name} to complete")

0 commit comments

Comments
 (0)