Files

1.8 KiB

Workflow APIs

Fetch the documentation for the operation before writing code; use its current signatures and serialization rules.

Task Documentation
Implement steps; create, batch, inspect, pause, resume, restart, or terminate instances; check parameter and return types Workers API
Access a step's name, occurrence, retry attempt, and resolved configuration Step context
Configure retries, backoff, timeouts, non-retryable failures, or relative/absolute sleeps Sleeping and retrying
Pass initial parameters, wait for an external event, or send an event to an instance Events and parameters
Start instances from a Worker or another Workflow, or schedule execution Trigger Workflows
Trigger and manage instances from the command line Wrangler commands
Manage Workflows over HTTP, including authentication and request bodies Workflows REST API

Decide whether input is available at creation or must arrive later as an event. Starting a child instance does not establish that it has completed; choose how the parent will observe completion. Check current instance ID retention and creation semantics before designing duplicate-trigger handling.

See configuration.md and patterns.md.