Skip to content
Proud to collaborate with Microsoft for Startups

spad.cloudflare.deploy_worker ​

Deploy Cloudflare Worker script to production (DAG step)

Deploy the Worker script to production and record provisioning-completed event.

Overview ​

PropertyValue
Workflow typeLinear
LibraryApp-spad
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
site_uuidstringYes—SpadSite.id whose Worker should be deployed
cloud_connection_uuidstringYes—Cloudflare CloudConnection.id
worker_script_namestringYes—Worker script name to deploy
worker_urlstringNo—Public Worker URL (for event payload)
organization_uuidstringNo—Organization that owns the site
workflow_run_idstringNo——
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)

Output Schema ​

FieldTypeRequiredDefaultDescription
deployed_atstringYes—ISO8601 timestamp when the Worker was deployed
completed_atstringNo—ISO8601 timestamp when the step reached COMPLETED
failed_atstringNo—ISO8601 timestamp when the step reached FAILED
workflow_run_idstringNo——
site_uuidstringNo—SpadSite.id whose Worker should be deployed
cloud_connection_uuidstringNo—Cloudflare CloudConnection.id
worker_script_namestringNo—Worker script name to deploy
worker_urlstringNo—Public Worker URL (for event payload)
organization_uuidstringNo—Organization that owns the site
workflow_run_uuidstringNo—Parent workflow run ID stamped by the DAG engine (legacy alias)
errorstringNo—Engine-stamped failure metadata
error_typestringNo—Engine-stamped failure metadata
failed_at_statejsonNo—Engine-stamped failure metadata
failed_layerjsonNo—Engine-stamped failure metadata
failed_stepjsonNo—Engine-stamped failure metadata
failure_reasonstringNo—Engine-stamped failure metadata

States ​

StateInitialTerminalSuccessAuto-advanceDescription
initiatedYesNo—runDeploy step accepted
runNoNo—completeDeploying Worker
completedNoYesYes—Worker deployed
failedNoYesNo—Worker deployment failed

State Diagram ​

Transitions ​

FromActionToDescription
initiatedrunrunStart Worker deployment
runcompletecompletedMark Worker deployment completed
* (any state)failfailedMark Worker deployment failed

API Usage ​

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

{
  "workflow_type": "spad.cloudflare.deploy_worker",
  "initial_data": {
    "site_uuid": "value",
    "cloud_connection_uuid": "value",
    "worker_script_name": "value"
  }
}