cloudflare.worker.deploy ​
Upload + bind + route + persist a Cloudflare Worker
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 | — | — |
script_name | string | Yes | — | — |
script_content | string | Yes | — | Worker script source |
script_hash | string | No | — | — |
kv_bindings | list | No | — | — |
r2_bindings | list | No | — | — |
secret_values | dict | No | — | Map of secret_name -> plaintext value; vaulted by SensitiveDataMiddleware, never persisted in cleartext state_data |
routes | list | No | — | List of |
worker_url | string | No | — | — |
actor | string | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
organization_uuid | uuid | Yes | — | — |
cloud_connection_uuid | uuid | Yes | — | — |
script_name | string | Yes | — | — |
script_content | string | Yes | — | Worker script source |
script_hash | string | No | — | — |
kv_bindings | list | No | — | — |
r2_bindings | list | No | — | — |
secret_values | dict | No | — | Map of secret_name -> plaintext value; vaulted by SensitiveDataMiddleware, never persisted in cleartext state_data |
routes | list | No | — | List of |
worker_url | string | No | — | — |
actor | string | No | — | — |
uploaded_at | string | No | — | — |
bindings_applied_at | string | No | — | — |
routes_applied | list | No | — | — |
persisted_at | string | No | — | — |
cloudflare_worker_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 | — | upload | Inputs accepted |
binding | No | No | — | route | Applying secret values |
persisting | No | No | — | complete | Persisting CloudflareWorker row |
routing | No | No | — | persist | Applying DNS records / zone routes |
uploading | No | No | — | bind | Uploading script + bindings |
completed | No | Yes | Yes | — | Worker live |
failed | No | Yes | No | — | Deploy failed |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | upload | uploading | — |
uploading | bind | binding | — |
binding | route | routing | — |
routing | persist | persisting | — |
persisting | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "cloudflare.worker.deploy",
"initial_data": {
"organization_uuid": "value",
"cloud_connection_uuid": "value",
"script_name": "value",
"script_content": "value"
}
}