Durable Functions

Fail a waiting step

Changed on

Resumes the workflow step waiting on the token by raising error. The SDKs raise it as CallbackFailedError, carrying its type and message.

The token is the only credential, and takes one outcome, as for succeeding it.

post/durable-callbacks/fail

Request

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

Request body

FailDurableCallbackRequest required
token, string required

The vcb_ token the workflow handed out. It is the only credential the callback operations take, so treat it as a secret.

error, DurableCallbackError required

The error the waiting step raises.

Response

The workflow has the error

DurableCallbackOutcome required
status, 'waiting' | 'delivering' | 'succeeded' | 'failed' required

waiting until the token is succeeded or failed. delivering while the outcome is on its way to the workflow; Volcano finishes the delivery on its own. succeeded or failed once the workflow has the outcome.

Changes