The engine takes care of the hard parts of long-running work, so each workflow is written as plain steps.
It keeps its place
Each step's result is recorded as it completes. After a crash, a restart or a deploy, the workflow carries on from the step it was on.
Retries and timeouts per step
Each step has its own retry policy, with backoff, and its own timeouts. A step that could write twice is set to run once.
Long steps check in
A long step reports its progress as it goes. If it stalls, the engine notices, and the retry picks up from the last progress it reported.
Waits that last
Timers run for minutes or for months and survive restarts. A workflow can wait on an approval, a delivery or a deadline without holding anything else up.
Hears from outside
An approval, a webhook or another agent's event reaches a running workflow as a signal. Each decision is keyed to its own proposal, so a late or stray signal never opens the wrong gate.
Queries and updates
Ask a running workflow where it is, or send it a change and get an answer back. An update is checked before it is applied.
Workflows inside workflows
A workflow can start others, run them side by side and wait for their results, so a large job splits into parts that each keep their place.
Undoes in order
When a step fails for good, or the run is cancelled, the steps before it are compensated in reverse order. The work ends done, or cleanly undone.
Schedules
Workflows start on a schedule that can be paused, resumed or backfilled, in place of cron.
Runs for months
A long-lived workflow, such as one per seller, starts a fresh run with its state carried over, so its history never grows without limit.
Changes ship safely
New workflow code ships while runs are in flight. Each run follows the code it started on until it reaches the change, and any recorded run can be replayed against new code to prove it still fits.
Full history, searchable
Every run keeps its full history, step by step, and can be replayed to debug it. Runs can be found by seller, by type and by status.
One run per id
A workflow's id is unique while it runs, so a duplicate start is refused and the same work never runs twice at once.
Scales by adding workers
Work is spread across workers by queue. Add workers to take more load, and rate limits keep each outside service within its quota.
Model calls are steps
A model call runs as a step like any other: timed out, retried until its output passes validation, and recorded in the history.