Fix kill_job
Apparentely rendering of Enums has changed.
This commit is contained in:
parent
84b674b427
commit
8c90401622
1 changed files with 2 additions and 2 deletions
|
|
@ -262,13 +262,13 @@ def kill_job(build_name: str, job_kind: DeploymentMode) -> None:
|
|||
batchv1 = client.BatchV1Api()
|
||||
batchv1.delete_collection_namespaced_job(
|
||||
namespace=settings.build_namespace,
|
||||
label_selector=f"runboat/build={build_name},runboat/job-kind={job_kind}",
|
||||
label_selector=f"runboat/build={build_name},runboat/job-kind={job_kind.value}",
|
||||
grace_period_seconds=0,
|
||||
)
|
||||
corev1 = client.CoreV1Api()
|
||||
corev1.delete_collection_namespaced_pod(
|
||||
namespace=settings.build_namespace,
|
||||
label_selector=f"runboat/build={build_name},runboat/job-kind={job_kind}",
|
||||
label_selector=f"runboat/build={build_name},runboat/job-kind={job_kind.value}",
|
||||
grace_period_seconds=0,
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue