Durable Functions

Open a messages session from inside a workflow

Changed on

Opens the session a workflow publishes messages with. The Volcano SDK calls this once per workflow context, on its first ctx.publish; applications do not call it directly.

As for a wait, execution_ref and callback_id are the credential. The session's token is delivered to the workflow itself and never appears in a response.

Retrying is safe: a request for a session that is already registered returns it with 200.

post/durable-messages/sessions

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    none required

Request body

OpenDurableMessageSessionRequest required
execution_ref, string required

Opaque reference to the running execution, supplied by the SDK.

callback_id, string required

Opaque session reference, supplied by the SDK.

Response

The session was already registered

DurableMessageSessionRegistration required

The registered session. Its token reaches the workflow through the workflow itself, never in this response.

id, string uuid required

Changes