GitHub user pavelpi edited a discussion: KubernetesPodOperator finishes despite 
marked as failed

we have long running task as KubernetesPodOperator.

When we mark the task as failed, it is marked red immediately on UI and the 
rest of the pipeline finishes accordingly. However Airflow does not kill the 
pod and when the pod finishes, the task is turned green despite the fact the 
DAG already finished long ago.

Is there any way how to tell Airflow to kill the pod in kubernetes when we mark 
the task as failed?

Tested both with versions 2.7.3 and 2.10.4.

Looks similar to https://github.com/apache/airflow/issues/37263, but in our 
case is_delete_operator_pod does not have any effect

GitHub link: https://github.com/apache/airflow/discussions/45830

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to