abhijeets25012-tech opened a new pull request, #74845: URL: https://github.com/apache/airflow/pull/74845
### Summary Add a new `on_success_succeed_dagrun` option to teardown tasks to control whether a successful teardown task should contribute to a successful DAG run state. ### Motivation When teardown tasks are configured with `on_failure_fail_dagrun=True`, a successful teardown can affect the final DAG run state and mask a failure in a regular work task. ### Changes - Add the `on_success_succeed_dagrun` parameter to the teardown task decorator. - Update DAG run state evaluation to account for this option. - Add a regression test covering a failed work task followed by a successful teardown task when `on_success_succeed_dagrun=False`. ### Testing - Added a regression test in `tests/unit/models/test_dagrun.py`. - Local test execution was blocked by a pytest argument error before test collection. CI results will be used to verify the changes. -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
