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: Marius van den Beek <[email protected]>
  • Loading branch information
mapk-amazon and mvdbeek committed Dec 17, 2024
1 parent cbeedf3 commit c311092
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 @@ -739,7 +739,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 "uncountedTerminatedPods" in job.obj["status"]:
if len(job.obj["status"]) == 0 or in 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 c311092

Please sign in to comment.