spad.site-deletion-mark-failed ​
Mark site deletion as failed (saga compensation)
Mark site deletion as failed - compensation step
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-spad |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
site_uuid | string | Yes | — | UUID of the SPAD site |
organization_uuid | string | Yes | — | Organization UUID |
failure_reason | string | No | Unknown error | Reason for failure |
workflow_run_id | string | No | — | Parent workflow run ID stamped by the DAG engine |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
marked_failed | boolean | Yes | — | True once compensation ran (False only when site_uuid was missing) |
failure_reason | string | Yes | — | Reason recorded on the failure marker |
failed_at | string | No | — | ISO8601 timestamp when compensation ran |
site_uuid | string | No | — | UUID of the SPAD site |
organization_uuid | string | No | — | Organization UUID |
workflow_run_id | string | No | — | Parent workflow run ID stamped by the DAG engine |
workflow_run_uuid | string | No | — | Parent workflow run ID stamped by the DAG engine (legacy alias) |
error | string | No | — | Engine-stamped failure metadata |
error_type | string | No | — | Engine-stamped failure metadata |
failed_at_state | json | No | — | Engine-stamped failure metadata |
failed_layer | json | No | — | Engine-stamped failure metadata |
failed_step | json | No | — | Engine-stamped failure metadata |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | run | Failure marker step accepted |
run | No | No | — | complete | Marking site and resources as failed |
completed | No | Yes | Yes | — | Failure marker completed |
failed | No | Yes | No | — | Failure marker failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | run | run | Start failure marker |
run | complete | completed | Mark failure marker completed |
* (any state) | fail | failed | Mark 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"
}
}