Skip to the content.

FAQ

Does a step run exactly once? Its recorded result is exactly once: after a result is recorded, the body never runs again for that run. The body itself can run again if the process dies after the body finished and before the result was recorded. Make bodies idempotent. See Guarantees.

Why did my run not continue right after I sent a signal? signal() stores the signal and marks a waiting run as due; it does not execute anything. The run continues on the next tick(). Call tick({ maxRuns: 1 }) after the signal if you need it now.

My sleep of 10 seconds took almost a minute. A parked run resumes on the first tick at or after its wake time. With a one-minute tick, timing resolution is one minute. Tick more often, or do short waits inside a step if you must.

Why does my flow see "[redacted]" instead of a value? Redaction runs before storage and the flow gets the stored value, so first runs and replays agree. Property names with the word password, passwd, secret, token, api key, private key, authorization or cookie are redacted by default (apiKey, accessToken, clientSecret; not passengers, keyword or dateKey). Rename the field, change the patterns with createSteady({ redact: { patterns: [...] } }), or for real secrets the flow needs, use { sensitive: true } with encryption. See Security.

Can I run steps in parallel? Not inside one run: start one operation at a time and await it, or the run fails with FlowUsageError. For parallel work, start several runs (for example one per item, with keys) and have the parent wait for signals from them, or do the parallel calls inside a single step.

Can I change a flow while runs are in flight? You can change code between steps and inside step bodies freely, as long as the sequence of step names that in-flight runs already recorded stays the same. Adding steps after the point every in-flight run has reached is fine. Renaming, removing or reordering recorded steps makes those runs fail with ReplayMismatchError. For a breaking change, define the new shape under a new flow name and let old runs finish.

What happens to runs of a flow no process defines any more? Runners only claim runs of flows they define, so those runs stay where they are. Define the flow again to let them finish, or cancel them.

Can I call tick() from several servers? Yes. Leases with FOR UPDATE SKIP LOCKED make sure each run executes in one place. See Operations.

How do I see what happened in a run? steady.history(runId) returns a timeline with every step attempt, its timing, result and error, every park, log line and signal. Or query the tables directly; examples are in Operations.

How do I retry a failed run? steady.retryNow(runId) re-opens it at the failed step with fresh attempts. Earlier steps are not run again.

Can I wait for a signal that was sent before the flow reached the wait? Yes. Signals are buffered per run (up to 1,000 unconsumed) and the wait takes the oldest one. The exception is a signal that arrived after an earlier wait of the same name timed out: it is late and ignored unless you pass acceptLate: true.

What does once(key) do that an idempotency key on start does not? start({ key }) deduplicates runs of one flow. once(key) deduplicates an action across all runs and flows of a tenant: the first run to ask gets true, every other run gets false.

Does Steady need a transaction-capable driver? No. Every operation is a single SQL statement, so Neon’s HTTP driver works as well as a pg pool.

Which Postgres versions are supported? The test suite and CI run against Postgres 16. Other versions are not tested; the schema relies on identity columns, partial unique indexes, data-modifying CTEs and FOR UPDATE SKIP LOCKED.

Can I use it without Postgres? For tests and experiments, memoryStore() keeps everything in memory. For production, Postgres is the only store.

Does Steady have a UI? No. Build one on list() and history(), or query the tables from your admin tools.

Is there a hosted version? No. Steady is a library; your database is the whole backend.

How do I test my flows? Use createSteady({ db: memoryStore(), clock }) with a controllable clock, call tick(), move the clock forward to end sleeps and timeouts, and assert on get() and history(). The package’s own tests (src/*.test.ts) and src/readme-example.test.ts show the pattern.