Skip to content
Snippets Groups Projects
Commit cb614995 authored by Andrew Kenworthy's avatar Andrew Kenworthy
Browse files

Update spark_kubernetes_sensor.py

parent ce6468d4
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ from airflow.providers.cncf.kubernetes.hooks.kubernetes import KubernetesHook
class SparkKubernetesSensor(BaseSensorOperator):
template_fields = ("application_name", "namespace")
# See https://github.com/stackabletech/spark-k8s-operator/pull/460/files#diff-d737837121132af6b60f50279a78464b05dcfd06c05d1d090f4198a5e962b5f6R371
# Unknown is set immediately so it must be excluded from the faield states.
#FAILURE_STATES = ("Failed", "Unknown")
FAILURE_STATES = ("Failed")
SUCCESS_STATES = "Succeeded"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment