I'm trying to invoke an Apache OpenWhisk action (using the JavaScript SDK) as a remote function. I want to wait for the function result to be available to use in my application.
This is normally handled by using a blocking invocation, e.g.
ow.actions.invoke({name, blocking: true, result: true, params})
...but in this case, the action takes multiple minutes to complete which leads to a timeout in the HTTP connection. The SDK throws an error after sixty seconds.
How can I retrieve an action result for an invocation which takes longer than a minute?