Skip to content

Commit 99c11fd

Browse files
committed
add a grace for Jobs that may start in Unknown
Signed-off-by: Prekshi Vyas <prekshivyas@gmail.com>
1 parent 748885e commit 99c11fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nemo_run/core/execution/lepton.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ def move_data(self, sleep: float = 10, timeout: int = 600, poll_interval: int =
132132
current_job_status = current_job.status.state
133133

134134
if count > 0:
135-
if current_job_status == LeptonJobState.Completed:
136-
break
137-
elif current_job_status == LeptonJobState.Failed:
135+
if current_job_status == LeptonJobState.Completed or current_job_status == LeptonJobState.Failed:
138136
break
139137
elif current_job_status == LeptonJobState.Unknown:
140138
if unknown_start_time is None:

0 commit comments

Comments
 (0)