Skip to content
Proud to collaborate with Microsoft for Startups

spad.cloudflare.compensate_delete_worker ​

Compensate Worker creation (best-effort delete)

Rollback step: try to delete the Worker script created by spad.cloudflare.create_worker.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
cloud_connection_uuidstringYes—Cloudflare CloudConnection.id
worker_script_namestringNo—Worker script name to delete; no-op when absent
workflow_run_idstringNo—Parent workflow run ID stamped by the DAG engine
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
worker_deletedbooleanYes—True when the Worker was deleted or treated as not-found
completed_atstringNo—ISO8601 timestamp when compensation finished
failed_atstringNo—ISO8601 timestamp when compensation failed
cloud_connection_uuidstringNo—Cloudflare CloudConnection.id
worker_script_namestringNo—Worker script name to delete; no-op when absent
workflow_run_idstringNo—Parent workflow run ID stamped by the DAG engine
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)
errorstringNo—Engine-stamped failure metadata
error_typestringNo—Engine-stamped failure metadata
failed_at_statejsonNo—Engine-stamped failure metadata
failed_layerjsonNo—Engine-stamped failure metadata
failed_stepjsonNo—Engine-stamped failure metadata
failure_reasonstringNo—Engine-stamped failure metadata

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—runCompensation accepted
runNoNo—completeDeleting Worker (rollback)
completedNoYesYes—Compensation completed
failedNoYesNo—Compensation failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrunStart compensation
runcompletecompletedMark compensation completed
* (any state)failfailedMark compensation failed

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "spad.cloudflare.compensate_delete_worker",
  "initial_data": {
    "cloud_connection_uuid": "value"
  }
}