-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[external-assets] Change error to warning for duplicate assets when constructing ExternalAssetGraph #20062
[external-assets] Change error to warning for duplicate assets when constructing ExternalAssetGraph #20062
Conversation
Current dependencies on/for this PR:
This stack of pull requests is managed by Graphite. |
7445c24
to
36d7eb7
Compare
warnings.warn( | ||
f"Found {execution_type.value} nodes for some asset keys in multiple code locations." | ||
f" Only one {execution_type.value} node is allowed per asset key. Duplicates:\n {duplicate_str}" | ||
) |
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.
echoing a concern raised in discussions else where so its recorded here
I think this will only show up in the daemon / webserver, which a user might catch in local dev but in a deployed contex is unlikely to be observed. Improving that effectively requires some UI surface area to highlight these global asset graph problems, much like we have talked about in the past for cycles.
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.
Raising this here: https://dagsterlabs.slack.com/archives/C03CCE471E0/p1708978938397619
…onstructing ExternalAssetGraph (#20062) ## Summary & Motivation #19900 introduced a check in the construction of `ExternalAssetGraph` that would throw an error if two materializable or observable defs having the same key were detected in a deployment (this is an invalid state). However, after running a shadow script against customer deployments, I discovered that ~3% of active deployments have this problem, so I am changing it to a warning (and making the message more informative) until we can find a clean strategy to message our customers who have this problem. ## How I Tested These Changes New test.
…onstructing ExternalAssetGraph (#20062) ## Summary & Motivation #19900 introduced a check in the construction of `ExternalAssetGraph` that would throw an error if two materializable or observable defs having the same key were detected in a deployment (this is an invalid state). However, after running a shadow script against customer deployments, I discovered that ~3% of active deployments have this problem, so I am changing it to a warning (and making the message more informative) until we can find a clean strategy to message our customers who have this problem. ## How I Tested These Changes New test.
Summary & Motivation
#19900 introduced a check in the construction of
ExternalAssetGraph
that would throw an error if two materializable or observable defs having the same key were detected in a deployment (this is an invalid state). However, after running a shadow script against customer deployments, I discovered that ~3% of active deployments have this problem, so I am changing it to a warning (and making the message more informative) until we can find a clean strategy to message our customers who have this problem.How I Tested These Changes
New test.