This is an automated email from the ASF dual-hosted git repository.
husseinawala pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 1f6257110d Make the `OnFinishAction` enum inherit from str to support
passing it to `KubernetesPodOperatpor` (#33228)
1f6257110d is described below
commit 1f6257110d28b638290c95c47fb4971450f0b4db
Author: raphaelauv <[email protected]>
AuthorDate: Wed Aug 9 21:24:11 2023 +0200
Make the `OnFinishAction` enum inherit from str to support passing it to
`KubernetesPodOperatpor` (#33228)
---
airflow/providers/cncf/kubernetes/utils/pod_manager.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/airflow/providers/cncf/kubernetes/utils/pod_manager.py
b/airflow/providers/cncf/kubernetes/utils/pod_manager.py
index aff81a1f18..650be681d3 100644
--- a/airflow/providers/cncf/kubernetes/utils/pod_manager.py
+++ b/airflow/providers/cncf/kubernetes/utils/pod_manager.py
@@ -721,7 +721,7 @@ class PodManager(LoggingMixin):
return res
-class OnFinishAction(enum.Enum):
+class OnFinishAction(str, enum.Enum):
"""Action to take when the pod finishes."""
KEEP_POD = "keep_pod"