data.cloudflare.queue.persist ​
Persist a CloudflareQueue row (create or restore)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
cf_queue_ref | string | Yes | — | — |
queue_name | string | Yes | — | — |
consumer_worker_name | string | No | — | — |
consumer_ref | string | No | — | — |
dlq_queue_name | string | No | — | — |
settings | dict | No | — | — |
provider_metadata | dict | No | — | — |
status | string | No | — | — |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
cloudflare_queue_uuid | uuid | Yes | — | — |
queue_name | string | Yes | — | — |
created | boolean | Yes | — | — |
restored | boolean | Yes | — | — |
persisted_at | string | Yes | — | — |
failure_reason | string | No | — | Engine-stamped human-readable failure reason |
failed_at_state | string | No | — | Engine-stamped state when the workflow failed |
failed_step | string | No | — | Engine-stamped step name (DAG path) |
failed_layer | integer | No | — | Engine-stamped layer index (DAG path) |
error | string | No | — | Engine-stamped exception message |
error_type | string | No | — | Engine-stamped exception class name |
failure_type | string | No | — | Engine-stamped failure category (atomic path) |
failed_action | string | No | — | Engine-stamped action method that raised (atomic path) |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | complete | Persist queue |
completed | No | Yes | Yes | — | Persisted |
failed | No | Yes | No | — | Persist failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | complete | completed | — |
pending | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "data.cloudflare.queue.persist",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"cf_queue_ref": "value",
"queue_name": "value"
}
}