cloudflare.queue.create ​
Create a Cloudflare queue end-to-end (CF + bind + DLQ + DB)
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-cloudflare |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
queue_name | string | Yes | — | — |
settings | dict | No | — | Queue settings (delivery_delay, message_retention_period, ...) |
consumer_worker | string | No | — | Worker script name to bind as consumer |
consumer_settings | dict | No | — | Optional batch_size / max_retries for the consumer binding |
dlq_queue_name | string | No | — | Optional DLQ queue name |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
queue_name | string | Yes | — | — |
settings | dict | No | — | Queue settings (delivery_delay, message_retention_period, ...) |
consumer_worker | string | No | — | Worker script name to bind as consumer |
consumer_settings | dict | No | — | Optional batch_size / max_retries for the consumer binding |
dlq_queue_name | string | No | — | Optional DLQ queue name |
actor | string | No | — | — |
cf_queue_ref | string | No | — | — |
created_at | string | No | — | — |
consumer_ref | string | No | — | — |
bindings_applied_at | string | No | — | — |
dlq_applied_at | string | No | — | — |
persisted_at | string | No | — | — |
cloudflare_queue_uuid | uuid | No | — | — |
completed_at | string | No | — | — |
failed_at | string | No | — | — |
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 |
|---|---|---|---|---|---|
initiated | Yes | No | — | create | Inputs accepted |
binding | No | No | — | configure_dlq | Binding consumer worker (skipped if absent) |
configuring_dlq | No | No | — | persist | Configuring DLQ (skipped if absent) |
creating | No | No | — | bind | Creating queue on Cloudflare |
persisting | No | No | — | complete | Persisting CloudflareQueue row |
completed | No | Yes | Yes | — | Queue ready |
failed | No | Yes | No | — | Create failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | create | creating | — |
creating | bind | binding | — |
binding | configure_dlq | configuring_dlq | — |
configuring_dlq | persist | persisting | — |
persisting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.queue.create",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"queue_name": "value"
}
}