Skip to content

Commit 35b1f7d

Browse files
committed
Address review comments
1 parent 163c8fc commit 35b1f7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cloudai/systems/kubernetes/kubernetes_system.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ def _is_mpijob_running(self, job: KubernetesJob) -> bool:
168168
conditions = status.get("conditions", [])
169169
logging.debug(f"MPIJob '{job.name}': {conditions=} {status=}")
170170

171+
self.store_logs_for_job(job.name, job.test_run.output_path)
172+
171173
# Consider an empty conditions list as running
172174
if not conditions:
173175
return True
174176

175-
self.store_logs_for_job(job.name, job.test_run.output_path)
176-
177177
for condition in conditions:
178178
if condition["type"] == "Succeeded" and condition["status"] == "True":
179179
return False

0 commit comments

Comments
 (0)