-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Ensure that dag.partial_subset doesn't mutate task group properties
#30129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure that dag.partial_subset doesn't mutate task group properties
#30129
Conversation
We had a few properties that we failed to copy that we should have. To fix that in such a way that we don't miss things in the future I've converted it to use deepcopy everything by default and exclude `children` and `parent_group`. This also made me notice that we were not correctly setting `parent_group` after partial_subset anymore -- it clearly hasn't mattered, but we were setting a now-unused `_parent_group` attribute.
|
Marked it for 2.5.3 in case there is one before 2.6 |
This comment was marked as resolved.
This comment was marked as resolved.
|
Okay yeah, I've totally misunderstood how deepcopy memo works on classes (It only works on instances, not on individual fields of the instance.) Rethinking |
|
Slightly more complex now, but it errs on the side of not breaking things in future (while still be quick now) |
bbovenzi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local testing works for me now. Including very large dags.
Co-authored-by: Jed Cunningham <66968678+jedcunningham@users.noreply.github.com>
…#30129) We had a few properties that we failed to copy that we should have. To fix that in such a way that we don't miss things in the future I've converted it to use deepcopy everything by default and exclude `children` and `parent_group`. This also made me notice that we were not correctly setting `parent_group` after partial_subset anymore -- it clearly hasn't mattered, but we were setting a now-unused `_parent_group` attribute. (cherry picked from commit 76a884c)
…#30129) We had a few properties that we failed to copy that we should have. To fix that in such a way that we don't miss things in the future I've converted it to use deepcopy everything by default and exclude `children` and `parent_group`. This also made me notice that we were not correctly setting `parent_group` after partial_subset anymore -- it clearly hasn't mattered, but we were setting a now-unused `_parent_group` attribute. (cherry picked from commit 76a884c)
We had a few properties that we failed to deepcopy that we should have. To fix that in such a way that we don't miss things in the future I've converted it to use deepcopy everything by default and exclude
childrenandparent_group.This also made me notice that we were not correctly setting
parent_groupafter partial_subset anymore -- it clearly hasn't mattered, but we were setting a now-unused_parent_groupattribute.Fixes #26059