Is it possible to make an Airflow DAG fail if any task fails?
I usually have some cleaning up tasks at the end of a DAG and as it is now, whenever the last task succeeds
Facing a similar problem. It is not a bug but it could be a nice feature to add this property to Dag.
As a workaround, I you can push a XCOM variable during the task that is allowed to fail and in the downstream tasks do something like
if ti.xcom_pull(key='state', task_ids=task_allowed_to_fail_id) == 'FAILED':
raise ValueError('Force failure because upstream task has failed')