-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that you can create a second DAG whilst another one is already…
… "active" (#44484) Why would you want to do this? Who knows, maybe you are calling a dag factory from inside a `with DAG` block. Either way, this exposed a subtle bug in `TaskGroup.create_root()`. This is the other half of the fix for the flakey tests fixed in #44480, and after much digging with @kaxil and @potiuk we've finally worked out why it was flakey: It was the "Non-DB" test job that were faling sometimes, and those tests use xdist to parallelize the tests. Couple that with the fact that `get_serialized_fields()` caches the answer on the class object, the test would only fail when nothing else in the current test process had previously called `DAG.get_serialized_fields()`. And to make this less likely to occur in future, the __serialized_fields is moved to being created eagerly at parse time, no more lazy loaded cache!
- Loading branch information
Showing
3 changed files
with
36 additions
and
30 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