I have a relatively simple DAG defined as follows:
set_variables >> create_conf_file >> check_running_job >> transform_data >> update_variables
create_conf_file >> remove_conf_file
check_running_stat_job >> remove_conf_file
transform_openidm_data >> remove_conf_file
update_orc_file_variable >> remove_conf_file
My goal here is to ensure that remove_conf_file is always executed regardless of the status of all previous tasks.
I've tried to use trigger_rule=TriggerRule.ALL_DONE in my PythonOperator call, but remove_conf_file is only executed if all previous tasks are done.
If task check_running_stat_job fails, the remove_conf_file task won't be executed.
I want the file to be removed whatever the status of upstream tasks is, DONE, FAILED, NOT DONE.
I've tried several DAG configurations but none seems to work.
[EDIT]
Here's the DAG tree view and DAG view in Airflow:


