Workflow.step is the fundamental building block of durable workflows. Each step’s result is automatically cached in Durable Object storage so that on workflow replay, completed steps are skipped and their cached value is returned directly.
Signature
Parameters
Configuration object for the step.
Return type
ReturnsEffect<A, StepErrors<E>, StepRequirements<R>> where A is the step’s output type and StepErrors<E> is a union of:
Serialization requirement
Step results are serialized to JSON and stored in Durable Object storage. The value returned byexecute must be JSON-serializable (plain objects, arrays, strings, numbers, booleans, null).
