-
Notifications
You must be signed in to change notification settings - Fork 131
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
fix: Better error for @pipe
without step()
#1218
Comments
Do we want to raise an error here or would it be better to return only the original node? So, in case no |
I like the idea of "passthrough" when using The main questions we have to answer:
I think this feature passes these assessments. The decorated function is intuitively the "default" implementation with Side note: Currently, visualizing a |
That should be the case since it is the same as config. But, I'll put on my TODO. to add to docs/newexample.
Yeah, but that is on the user -- since you get to see the dag in the ui, should not be hard to debug / comes with the usual dev pittfalls as config.
uuuu, I like that idea, but I think that's an upstream feature on the level of config and potentially making this a toggle option for the ui / visualise api. |
This problem was shared by a user.
Problem
The issue is caused by this node where
@pipe_output
does containstep()
but the use of.when()
(which interacts with the config) may mean nostep
is provided (relates to #1213)This leads to this unhelpful error (trimmed). It indicates
IndexError: list index out of range
because the list ofstep
is empty.Proposed solution
Have an helpful error message that says "
@pipe_output
is improperly defined and received nostep
. If you're usingstep(...).when()
, make sure that your config enables at least onestep()
in the pipe"The text was updated successfully, but these errors were encountered: