Get a durable execution from an application
Changed onReturns the execution's current state with the credential that started it, including its result once it has succeeded. Poll this to wait for an execution to finish.
With a service key: any execution in the project when the key holds *, the default. A key scoped to a list without * reaches an execution whose X-Volcano-Client-Token the request carries, as an anon key does; the start returns that token.
With an auth user token: an execution the user started, or one whose X-Volcano-Client-Token the request carries, of a durable function whose visibility is authenticated or public.
With an anon key: an execution whose X-Volcano-Client-Token the request carries, of a function with visibility: public.
Only a service key holding * reaches an execution that is still pending. Any other execution answers 404, as a missing one does.
The response is the one GET /projects/{id}/durable-functions/{functionId}/executions/{executionId} returns. It never carries client_token.
Request
- Base URLhttps://api.volcano.dev
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
Durable function ID, or its name within the project
Durable execution ID
Headers
The client_token the execution's start returned. Lets an anon key, or a user who did not start the execution, reach it, and a service key scoped to a list without * read and stop it.
Response
Successful response
Idempotency key for the execution. Supplied by the client through X-Volcano-Execution-Name, otherwise generated.
Lifecycle state of an execution. pending covers the window between the platform reserving the execution name and the function accepting the start, and has no counterpart once the execution is under way. succeeded, failed, timed_out, stopped and unknown are terminal.
unknown means the execution's outcome cannot be established, so no result or error can be given for it. Either it was under way and was never seen to finish, or its start failed with a 500 without the platform establishing whether the execution began — which is why a name whose start returned an error can later read as unknown rather than not being found. It is terminal because nothing can settle it later, and it is rare — treat it as an outcome to retry rather than a state to wait on. A retry under the same name picks this execution back up instead of starting a second one, and needs a free concurrency slot because an unknown execution has given its own up. completed_at on an unknown execution is when the platform gave up, not when the work ended.
Region the execution runs in. An execution is pinned to one region for its whole life because its checkpoints live there.
true when the execution is terminal but its result is no longer retained, which distinguishes a discarded result from an empty one. Shortly after that the execution itself is dropped and reads answer 404.
A result that was checkpointed rather than returned leaves this unset, so it reads like a function that returned nothing.
Why a failed or timed-out execution ended.
Present once the execution has reached a terminal status.
Lets a browser read the execution, stop it, and read and send its messages, and a service key scoped to a list without * read and stop it. Returned only by the start whose input the execution runs, never by a repeat under the same name or by a read. Send it as X-Volcano-Client-Token.
Changes
- info
endpoint added
- info