Hi,
I have a function which I invoke by sending a HTTP request:
https://faas-lon1-123456.doserverless.co/api/v1/namespaces/fn-my-namespace/actions/foo/bar
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 ondigitalocean.app
subdomain which doesn’t seem to have the API endpoints I need. A request to my-application.ondigitalocean.app/foo/bar
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.
Thanks.
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!