-
Notifications
You must be signed in to change notification settings - Fork 107
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
Passing function parameters to events #324
Comments
It doesn't look like that is currently possible. The timeout event is only emitted with the error and the latency value. @lance what do you think about adding the original function arguments to the timeout event when it is emitted? I can send a PR |
@lholmquist yes - that sounds good. I wonder if it should necessarily be limited to |
agreed, i'll added them too, to see how it feels. |
Thanks for the response. It would be great to help diagnose the issue if we can know the inputs especially for those events like timeout and failure. |
…mitted in a timeout event. fixes nodeshift#324
…mitted in a failure event. fixes nodeshift#324
…mitted in a timeout event. fixes nodeshift#324
…mitted in a failure event. fixes nodeshift#324
This is more of a question than an issue. I like to use the parameters that were passed in the action function and do something in the event. For instance, let's say
x
andy
are passed inasyncFunctionThatCouldFail
function and I like to print out thex
andy
on timeout event. How can I do that?The text was updated successfully, but these errors were encountered: