Skip to content
Proud to collaborate with Microsoft for Startups

spad.site-deletion-mark-failed ​

Mark site deletion as failed (saga compensation)

Mark site deletion as failed - compensation step

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—UUID of the SPAD site
organization_uuidstringYes—Organization UUID
failure_reasonstringNoUnknown errorReason for failure
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
marked_failedbooleanYes—True once compensation ran (False only when site_uuid was missing)
failure_reasonstringYes—Reason recorded on the failure marker
failed_atstringNo—ISO8601 timestamp when compensation ran
site_uuidstringNo—UUID of the SPAD site
organization_uuidstringNo—Organization UUID
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

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—runFailure marker step accepted
runNoNo—completeMarking site and resources as failed
completedNoYesYes—Failure marker completed
failedNoYesNo—Failure marker failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingrunrunStart failure marker
runcompletecompletedMark failure marker completed
* (any state)failfailedMark failure marker failed

API Usage ​

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

{
  "workflow_type": "spad.site-deletion-mark-failed",
  "initial_data": {
    "site_uuid": "value",
    "organization_uuid": "value"
  }
}