You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/11/02 23:03:58 UTC

[GitHub] [airflow] kaxil commented on issue #15468: DAG state is Success even in case of intermediate Task Failure for TriggerRule.ALL_DONE

kaxil commented on issue #15468:
URL: https://github.com/apache/airflow/issues/15468#issuecomment-958356476


   Like @eladkal mentioned - I have had similar requirements like him and I would have `on_failure_callbacks` notifying that my task failed.
   
   For your case, you can write a CustomOperator which you have at the end that checks if your EMR task failed or not and fail this task itself, thereby the DagRun will also be failed as it is the last task.
   
   
   ---
   
   Your feature request while legit need more thinking through:
   - What happens when there are more than one terminal tasks
   - Do we want to allow users to set which task_id need to succeed for DagRun status


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org