forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that zombie tasks for dags with errors get cleaned up (apache#…
…25550) If there is a parse error in a DAG the zombie cleanup request never ran, which resulted in the TI never leaving running state and just continually being detected as a zombie. (Prior to AIP-45 landing, this bug/behaviour resulted in a DAG with a parse error never actually leaving the queued state.) The fix here is to _always_ make sure we run `ti.handle_failure` when we are given a request, even if we can't load the DAG. To _try_ and work as well as we can, we try to load the serialized_dag if we can, but in cases where we can't for whatever reason we also make sure TaskInstance.handle_failure is able to operate even when `self.task` is None.
- Loading branch information
Showing
6 changed files
with
162 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters