Replies: 1 comment
-
|
Up |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I encountered a
DagsterInvariantViolationErrorwhen trying to return a simple Python primitive (like a str) from an asset that utilizesPipesSubprocessClient. Here's the error message:Here is my code:
Surprisingly, when I remove the lines involving
PipesSubprocessClient, everything works as expected and returns the string without errors.What I Tried
The error message suggested that my function was behaving more like an op than an asset, so I adjusted my code to explicitly return an
Outputobject instead of a plain string. After this change, it started working:Questions
Why does using PipesSubprocessClient alter the behavior of the asset function?
Without it, returning a simple string works fine. With it, the function seems to require the use of an Output object.
Is this behavior intentional or a bug?
If intentional, it would be helpful for the documentation to clarify this distinction, as the current behavior is unexpected.
Why does the function behave more like an op when PipesSubprocessClient is involved?
This isn't immediately clear from the documentation or error message.
Looking forward to insights on whether this is expected behavior or if I'm missing something in the configuration.
Beta Was this translation helpful? Give feedback.
All reactions