rabbah commented on issue #2687: Non-blocking web action URL: https://github.com/apache/incubator-openwhisk/issues/2687#issuecomment-329352589 oops - sorry, slipped off my todos. here's an example: ```js > cat delegate.js var openwhisk = require('openwhisk') function main(args) { const wsk = openwhisk() return wsk.actions.invoke({ actionName: '/whisk.system/utils/echo', params: {args: 'some arg'}, blocking: false }).then(_ => ({ body: 'this is the webaction result' })) } ``` create the web action: ```bash > wsk action create delegate delegate.js --web true > curl `wsk action get delegate --url | tail -1` this is the webaction result ``` now you can curl this action and it will return as soon as the action is invoked (here i'm using `whisk.system/utils/echo` as an example). you can use this action in a sequence if your web action handler requires more logic, and use it at the end of the sequence in particular. does that help? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
With regards, Apache Git Services
