Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore legacy AutoMaterializePolicies in AnyDownstreamConditions (#24411
) ## Summary & Motivation Due to how we gate access to the legacy context object, and the fact that the "fully resolved" automation condition is not available until we execute the AnyDownstreamConditions condition (because we need access to the full asset graph), this would previously cause errors. These errors are weird, as the method says "any downstream *conditions*", whereas the downstream causing that failure has an AutoMaterializePolicy, not a condition. This change just ignores AMPs that are found downstream, avoiding the error ## How I Tested These Changes ## Changelog Fixed issue which could cause errors when using `AutomationCondition.any_downstream_condition()` with downstream `AutoMaterializePolicy` objects. - [ ] `NEW` _(added new feature or capability)_ - [x] `BUGFIX` _(fixed a bug)_ - [ ] `DOCS` _(added or updated documentation)_
- Loading branch information