Operations

Cancel a pending or in-flight async operation

Changed on

Cancel a queued or running async operation. A 'pending' operation is never started. A 'processing' one is cancelled cooperatively: the row is marked 'cancelled' immediately and the worker running it stops at its next checkpoint, so work already in flight may finish the batch it is on. This also clears operations stranded in 'processing' by a crashed worker. Returns 409 for operations that already reached a terminal state.

delete/v1/default/banks/{bank_id}/operations/{operation_id}

Request

Path parameters

bank_idstring required
operation_idstring required

Headers

authorizationstring nullable

Response

Successful Response

successboolean required
messagestring required
operation_idstring required

Example response

{
  "message": "Operation 550e8400-e29b-41d4-a716-446655440000 cancelled",
  "operation_id": "550e8400-e29b-41d4-a716-446655440000",
  "success": true
}

Changes

    • warning

      removed the optional property // from the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status