-
Notifications
You must be signed in to change notification settings - Fork 11
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
Worker: no error handling on fetch:credential #600
Comments
I actually think the 1-0 branch is handling this a lot better because it adds error handling to the underlying helper function. |
Yes, in fact, I think in 1.0 the credential will throw or timeout, which will trigger a |
I think the bigger question is: what error reason do we return if a credential failed to load? If it's because the credential is hosted externally and is out of date or invalid, that feels like a crash to me. |
Just like #590, the Worker doesn't have very good error handling around
fetch:credential
. If for some reason a credential can't be returned (like with this Oath bug we're seeing), only bad things will happen.At the time of writing that's manifesting as the Run being marked as Lost.
I am a bit concerned that the worker will get the
run:error
event before therun:start
event. I think this is legit - we can't even start the run if we can't load the credentials.(later, credentials and dataclips will be loaded on demand, rather than preloaded, so that becomes kinda moot)
This is all closely related to the dataclip stuff - see #595
The text was updated successfully, but these errors were encountered: