Send a message to a durable execution from an application
Changed onSends a named message to a running execution. The workflow receives it from ctx.waitForMessage with the same name. A message sent before anything waits for its name is kept, and each wait takes the oldest one, so messages arrive in the order they were sent.
Messages never decide an approval: a workflow waiting in ctx.waitForApproval is not resumed by one.
With a service key: any execution in the project.
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.
Any other execution answers 404, as a missing one does.
Send Idempotency-Key to make a retry safe: a repeat with a key the same sender has used on the execution returns the first message with 200 and sends nothing.
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
Makes a send safe to retry. A repeat with a key the same sender has used on the execution returns the first message and sends nothing. Keys of different senders never collide. Up to 255 printable ASCII characters.
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.
Request body
The name a workflow waits on or publishes under: up to 237 printable ASCII characters.
Response
A message with this Idempotency-Key was already sent; it is returned
A message sent to, or published by, a durable execution.
in is a message sent to the execution. out is one the execution published.
Orders the execution's messages in both directions. It increases with every message but can skip numbers. Pass the last one you read as after to read what came next.
Who sent the message.
An in message is queued until a wait for its name takes it, delivering while it is handed over, and delivered once the execution has it. It is dropped if the execution ended before any wait took it. Every out message is published.
When the execution received the message. Null until then, and for out messages.
Changes
- breaking
added the pattern
^[ -~]+$to theheaderrequest parameterIdempotency-Key
- breaking
- info
endpoint added
- info