Request an approval from inside a workflow
Changed onRegisters an approval request for a running durable execution. The Volcano SDK calls this from ctx.waitForApproval; applications do not call it directly.
execution_ref and callback_id are opaque values the SDK reads from the running workflow. Together they are the request's credential, so the operation takes no other authentication. The approval belongs to the project that owns the execution, and expires when the workflow's own approval timeout does.
Retrying is safe: a request for an approval that is already registered returns it with 200.
Request
- Base URLhttps://api.volcano.dev
- Authnone required
Request body
Opaque reference to the running execution, supplied by the SDK.
Opaque approval reference, supplied by the SDK.
Response
The approval was already registered
The registered approval, as the requesting workflow sees it.
pending means the workflow is waiting for a decision. approved and denied are decisions a person made. expired means the workflow's approval timeout passed first, and cancelled means the execution ended while the approval was still pending. Every status but pending is final.
Changes
- info
endpoint added
- info