Wait for a message from inside a workflow
Changed onRegisters a wait for a named message. The Volcano SDK calls this from ctx.waitForMessage; 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. When a message for the name is already queued, the wait takes the oldest one at once.
Retrying is safe: a request for a wait 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 wait reference, supplied by the SDK.
The name a workflow waits on or publishes under: up to 237 printable ASCII characters.
Response
The wait was already registered
The registered wait, as the waiting workflow sees it.
waiting until a message for its name arrives, matched while that message is handed over, then delivered. expired means the wait's timeout passed first, and cancelled that the execution stopped waiting.
Changes
- info
endpoint added
- info