Run a first workflow on 0.13.1
Pin the release and add an async runtime.
Implement the runtime
The workflow function reads history and returns decisions. The step function performs external actions.
Run the program.
The first replay returns ScheduleStep. After step output commits, the second replay returns Complete. Execution position comes from event history rather than an in-process cursor.
Inspect history
Event sequence starts at 1 and remains contiguous. Concurrent appends use an expected sequence. A losing writer rereads history and cannot overwrite committed events.
External idempotency
Physical step delivery is at least once. If a process exits after an external action succeeds but before step output commits, a replacement worker invokes the step again. Real step input needs a stable business idempotency key.
The target service should return the original result for the same key and parameters.
Use the native TypeScript compiler
0.13.1 publishes an installable compiler.
Production configuration should use NativeTsDependencyMode::CompilerManifest so the dependency graph resolved by Bun participates in source identity. The Rust host still creates FlowEngine, stores, and workers.
Next steps
- Read Execution model for fixed-delay retry, waits, and hooks.
- Read Stores and migrations before adding SQLite or PostgreSQL.
- Use API reference for exact entry points at this tag.
