How to get function activation result after migrating to an app?


I have a function which I invoke by sending a HTTP request:

This immediately returns without blocking and sends back a x-openwhisk-activation-id HTTP header. I then poll /api/v1/namespaces/fn-my-namespace/activations/{$id}/result until the result is ready. I then send a HTTP request to /api/v1/namespaces/fn-my-namespace/activations/{$id} to fetch metdata about the result (time spent and memory used).

I want to move these functions to the app platform so I can take advantage of automatic Github builds. The problem is I’m given a subdomain which doesn’t seem to have the API endpoints I need. A request to still gives me the x-openwhisk-activation-id header but I don’t know where to use the activation ID to get the result/metadata. Also with this URL the request is blocking until the function is finished and it seems wasteful to keep a HTTP connection open for up to 15 minutes.

Please let me know if what I’m trying to do is possible. It seems like it should be but I couldn’t find any documentation.


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer