Skip to content
Proud to collaborate with Microsoft for Startups

spad.ltip.compensate_delete_bucket ​

Saga compensation: delete S3 bucket created by create_bucket

Delete the S3 bucket created by spad.ltip.create_bucket.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
s3_bucket_namestringNo—Bucket to delete; missing = nothing to undo
s3_regionstringNo—Bucket region (default us-east-1)
cloud_connection_uuidstringYes—AWS CloudConnection.id
site_uuidstringNo—Site id for log correlation
organization_uuidstringNo—Organization id for log correlation
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
compensatedbooleanYes—True once compensation ran (including no-op)
bucket_deletedbooleanNo—True iff a DeleteBucket call was issued and not short-circuited
skipped_reasonstringNo—Populated when compensation short-circuited (e.g. 'no_bucket_name', 'not_found')
completed_atstringNo—ISO8601 timestamp when compensation completed
failed_atstringNo—ISO8601 timestamp when compensation failed
s3_bucket_namestringNo—Bucket to delete; missing = nothing to undo
s3_regionstringNo—Bucket region (default us-east-1)
cloud_connection_uuidstringNo—AWS CloudConnection.id
site_uuidstringNo—Site id for log correlation
organization_uuidstringNo—Organization id for log correlation
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 bucket
completedNoYesYes—Bucket deleted or absent
failedNoYesNo—Bucket deletion failed

State Diagram ​

Transitions ​

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

API Usage ​

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

{
  "workflow_type": "spad.ltip.compensate_delete_bucket",
  "initial_data": {
    "cloud_connection_uuid": "value"
  }
}