Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
TaekyungHeo committed Aug 30, 2024
1 parent c043242 commit 108d4f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cloudai/systems/kubernetes/kubernetes_system.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ def _is_batch_job_running(self, job_namespace: str, job_name: str) -> bool:

conditions = k8s_job.status.conditions or []

# Consider an empty conditions list as running
if not conditions:
return True

for condition in conditions:
if condition.type == "Complete" and condition.status == "True":
return False
Expand Down

0 comments on commit 108d4f8

Please sign in to comment.