-
Notifications
You must be signed in to change notification settings - Fork 253
Feat: Propagate Error Through Context #1193
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Is there a way to test this with the other SDKs? I was trying to run a Python worker against my local setup but having issues:
|
I need a bit more context here to understand what we are trying to do. |
Ah yeah, sorry about that 😅 A couple of people have been asking for if they can access the error that was thrown upstream in their on_failure steps, presumably to do different things depending on the error. So I was trying to hook up the Python SDK to my local dev setup to see if I could e.g. run the on_failure example there and see how the error propagated through / how it'd need to be parsed, but not sure how to do that (was having issues - error up there ^^) |
@mrkaye97 I usually have to trust the Caddy root cert:
Also, ensure that |
Co-authored-by: abelanger5 <belanger@sas.upenn.edu>
Propagating errors in upstream step runs through the context by attaching a new field to the
input
that'serrors
, which is a dictionary of key-value pairs where the keys are the step names.Really not sure if this is implemented in a reasonable way, but it does seem to work - would love some feedback here :)
Example input from running the on failure example in Go: