Skip to content
Proud to collaborate with Microsoft for Startups

queue.enqueue ​

Admit one unit of work into a keyed queue. Applies the admission policy (append / coalesce_latest / reject_duplicate) plus optional debounce, and returns the resulting item and effect.

Admit one item into a partitioned queue, applying the admission policy.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-queue
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
queue_namestringYes——
partition_keyjsonNo——
targetdictYes——
payloadjsonNo——
owner_keystringNo——
producer_refstringNo——
policydictNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
itemjsonNo——
item_uuidstringNo——
partition_keystringNo——
effectstringNo——
admittedbooleanNo——
superseded_uuidstringNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_layerstringNo——
failed_stepstringNo——
errorstringNo——
error_typestringNo——
reasonstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeAccepted
completedNoYesYes—Completed
failedNoYesNo—Failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompletedRun the queue operation
* (any state)failfailedMark failed

API Usage ​

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

{
  "workflow_type": "queue.enqueue",
  "initial_data": {
    "organization_uuid": "value",
    "queue_name": "value",
    "target": "value"
  }
}