From df1bb9a53632402ccd14a041657068c568cd3883 Mon Sep 17 00:00:00 2001 From: Matt Pawelczyk <125464188+mapk-amazon@users.noreply.github.com> Date: Wed, 16 Oct 2024 21:02:27 +0200 Subject: [PATCH] Update lib/galaxy/jobs/runners/kubernetes.py Co-authored-by: Nuwan Goonasekera <2070605+nuwang@users.noreply.github.com> --- lib/galaxy/jobs/runners/kubernetes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/jobs/runners/kubernetes.py b/lib/galaxy/jobs/runners/kubernetes.py index be3d4239ff79..68bbddc81ebb 100644 --- a/lib/galaxy/jobs/runners/kubernetes.py +++ b/lib/galaxy/jobs/runners/kubernetes.py @@ -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 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"]