ticket.software-delivery.cleanup-execution-log-finalize ​
Validate provider, Lumen, workflow-history, and main-database receipts before completing one execution-log cleanup task
Internal exact-claim execution-log retention finalizer.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-tickets |
| Version | 1.0 |
Triggers ​
| Source | Endpoint / Event | Description |
|---|---|---|
| INTERNAL | internal.invocation | Internal exact-claim retention finalization |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | string | Yes | — | — |
cleanup_task_uuid | string | Yes | — | — |
claim_uuid | string | Yes | — | — |
worker_uuid | string | Yes | — | — |
receipts | list | Yes | — | — |
workflow_run_id | string | No | — | Engine-stamped parent run id when used as a DAG step |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
task | dict | No | — | — |
changed | boolean | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
failed_at_state | string | No | — | — |
failed_layer | json | No | — | — |
failed_step | string | No | — | — |
failure_reason | string | No | — | — |
workflow_run_id | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | run | — |
run | No | No | — | complete | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | run | run | — |
run | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "ticket.software-delivery.cleanup-execution-log-finalize",
"initial_data": {
"organization_uuid": "value",
"cleanup_task_uuid": "value",
"claim_uuid": "value",
"worker_uuid": "value"
}
}