Skip to content
Proud to collaborate with Microsoft for Startups

ticket.software-delivery.cleanup-claim-next ​

Claim one due owner-specific cleanup task with bounded attempts and a crash-recoverable lease.

Lease the oldest due task for one exact state owner.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-tickets
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
ownerstringYes——
worker_uuidstringYes——
idempotency_keystringYes——
broker_binding_keystringNo—Required only for published_ref claims; used for private trusted broker routing and never returned or persisted on the task.
control_tokenstringNo—Required for runner-owned physical state; verified against the registered runner instance and never persisted.
lease_secondsintegerNo——
nowdatetimeNo——
workflow_run_idstringNo—Engine-stamped parent run id when used as a DAG step

Output Schema ​

FieldTypeRequiredDefaultDescription
taskdictNo——
changedbooleanNo——
organization_uuidstringNo—Input field preserved in workflow state.
ownerstringNo—Input field preserved in workflow state.
worker_uuidstringNo—Input field preserved in workflow state.
idempotency_keystringNo—Input field preserved in workflow state.
broker_binding_keystringNo—Input field preserved in workflow state.
control_tokenstringNo—Input field preserved in workflow state.
lease_secondsintegerNo—Input field preserved in workflow state.
nowdatetimeNo—Input field preserved in workflow state.
workflow_run_idstringNo—Input field preserved in workflow state.
failed_atstringNo—ISO-8601 timestamp when action_fail recorded the failure
failure_reasonstringNo—Human-readable failure reason from action_fail
failure_typestringNo—Engine-stamped failure category
failed_actionstringNo—Engine-stamped action that raised
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerstringNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name
cleanup_task_uuidstringNo—Input field preserved in workflow state.
claim_uuidstringNo—Input field preserved in workflow state.
acknowledgementjsonNo—Input field preserved in workflow state.
diagnostic_codestringNo—Input field preserved in workflow state.

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—executeAccepted
executingNoNo—completeApplying the mutation
completedNoYesYes—Done
failedNoYesNo—Failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedexecuteexecutingRun the mutation
executingcompletecompletedFinalize
* (any state)failfailedCatch-all failure

API Usage ​

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

{
  "workflow_type": "ticket.software-delivery.cleanup-claim-next",
  "initial_data": {
    "organization_uuid": "value",
    "owner": "value",
    "worker_uuid": "value",
    "idempotency_key": "value"
  }
}