Skip to content

Commit

Permalink
Update lib/galaxy/jobs/runners/kubernetes.py
Browse files Browse the repository at this point in the history
Co-authored-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com>
  • Loading branch information
mapk-amazon and nuwang authored Oct 16, 2024
1 parent 2944d57 commit 3576afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/jobs/runners/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ def check_watched_item(self, job_state):
# It is possible that k8s didn't account for the status of the pods
# and they are in the uncountedTerminatedPods status. In this
# case we also need to wait a moment
if len(job.obj["status"]) == 0 or in job.obj["status"].get("uncountedTerminatedPods"):
if len(job.obj["status"]) == 0 or job.obj["status"].get("uncountedTerminatedPods"):
return job_state
if "succeeded" in job.obj["status"]:
succeeded = job.obj["status"]["succeeded"]
Expand Down

0 comments on commit 3576afd

Please sign in to comment.