forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't fail DagRun when leaf mapped_task is SKIPPED (apache#25995)
This one was a fun one to track down, and was only a problem when the scheduler "expanded" the first mapped task (making it SKIPPED). - The scheduler looks at `add_one` and marks it as SKIPPED. - `unfinished_tis` contains add_one_1, and `_are_premature_tis` changes the state of `add_one__1`, (which just so happens to be a leaf task), and the check on line 584 essentially gets confused, as no one envisaged the states changing! In a reverse of how this normally plays out, if the mini_scheduler in the LocalTaskJob was disabled then this example DAG would deadlock every time. (Since that mini scheduler only operates on a partial DAG it can't ever change the whole DagRun state.) Co-authored-by: Ephraim Anierobi <[email protected]> Co-authored-by: Tzu-ping Chung <[email protected]>
- Loading branch information
1 parent
1e19807
commit 5697e9f
Showing
8 changed files
with
137 additions
and
58 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
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
Oops, something went wrong.