release notes
Apache Airflow - A platform to programmatically author, schedule, and monitor workflows
release notes
Published 2/10/2025
PatchContains breaking changesPreviously when a DAG run was manually set to "failed" or to "success" state the terminal state was set to all tasks. But this was a gap for cases when setup- and teardown tasks were defined: If teardown was used to clean-up infrastructure or other resources, they were also skipped and thus resources could stay allocated.
As of now when setup tasks had been executed before and the DAG is manually set to "failed" or "success" then teardown tasks are executed. Teardown tasks are skipped if the setup was also skipped.
As a side effect this means if the DAG contains teardown tasks, then the manual marking of DAG as "failed" or "success" will need to keep the DAG in running state to ensure that teardown tasks will be scheduled. They would not be scheduled if the DAG is directly set to "failed" or "success".
trigger_rule=TriggerRule.ALWAYS in a task-generated mapping within bare tasks (#44751)ONE_DONE) in a mapped task group (#44937)FileTaskHandler only read from default executor (#46000)skip_if and run_if decorators before TaskFlow virtualenv tasks are run (#41832) (#45680)rendered_map_index (#45109) (#45122)max_form_parts, max_form_memory_size (#46243) (#45749)execute safeguard mechanism (#44646) (#46280)release notes
Published 2/10/2025
PatchContains breaking changesPreviously when a DAG run was manually set to "failed" or to "success" state the terminal state was set to all tasks. But this was a gap for cases when setup- and teardown tasks were defined: If teardown was used to clean-up infrastructure or other resources, they were also skipped and thus resources could stay allocated.
As of now when setup tasks had been executed before and the DAG is manually set to "failed" or "success" then teardown tasks are executed. Teardown tasks are skipped if the setup was also skipped.
As a side effect this means if the DAG contains teardown tasks, then the manual marking of DAG as "failed" or "success" will need to keep the DAG in running state to ensure that teardown tasks will be scheduled. They would not be scheduled if the DAG is directly set to "failed" or "success".
trigger_rule=TriggerRule.ALWAYS in a task-generated mapping within bare tasks (#44751)ONE_DONE) in a mapped task group (#44937)FileTaskHandler only read from default executor (#46000)skip_if and run_if decorators before TaskFlow virtualenv tasks are run (#41832) (#45680)rendered_map_index (#45109) (#45122)max_form_parts, max_form_memory_size (#46243) (#45749)execute safeguard mechanism (#44646) (#46280)