CLI reference
Built-in Runlane commands, arguments, and flags.
Run commands from your application directory with a CLI config. Use --json for machine-readable output. Global options may appear before or after a command.
--concurrency sets worker slots. It defaults to contractDefaults.worker.devConcurrency for dev and contractDefaults.worker.concurrency for work. trigger-batch --chunk-concurrency sets concurrent backend chunks. --concurrency-key selects one queue partition. Reader commands use --after for the API's after checkpoint. List and prune commands use --cursor for page continuation; keep filters unchanged while paging.
runlane prune --older-than 30d deletes eligible terminal runs in bounded pages. Repeat with the returned cursor until it is absent. Pending hooks and retained child results can delay deletion. See prune old runs.
The help below lists built-in commands. Use runlane <command> --help for terminal help. Configured provider commands live under adapter; ready-made Postgres lanes provide adapter postgres migrate and adapter postgres status. See Postgres storage.
With createLocalLane(), storage commands such as work, trigger, runs list, and stream/log follows require runlane dev. Without it, they fail with storage_unavailable, the config path, and instructions to start dev. The failed command stores no run. Start dev and retry; no app restart is needed. If dev is still starting or stopping, the error says so. In-process tests use createTestLane() instead.
runlane
Usage: runlane [options] [command]
Runlane operational CLI
Options:
-V, --version output the version number
-c, --config <path> config module exporting a Runlane CLI
config
--json emit JSON output
-h, --help display help for command
Commands:
init [options] initialize Runlane project files
types [options] generate frontend task types
trigger [options] <taskId> [payload] create a durable run for a registered
task
trigger-batch [options] submit a JSON array in atomic backend
chunks
dev [options] run a local maintenance and worker loop
work [options] start a delivery worker
tick [options] run one maintenance pass
runs [options] inspect durable runs
queues [options] inspect and control durable queue
admission
schedules [options] inspect and control declared and runtime
schedules
retry [options] <runId> create a manual retry child run from a
failed run
rerun [options] <runId> create a rerun child from a terminal run
cancel [options] <runId> request cooperative run cancellation
prune [options] prune old terminal runs
adapter [options] operate configured infrastructure
providers
help [options] [command] display help for a commandrunlane init
Usage: runlane init [options] [command]
initialize Runlane project files
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for command
Commands:
config [options] write a Runlane CLI config adapter
help [command] display help for commandrunlane init config
Usage: runlane init config [options]
write a Runlane CLI config adapter
Options:
--path <path> config file to write
--runtime <specifier> module specifier for the application runtime
--runtime-export <name> runtime export name, or default
--overwrite replace an existing config file
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane types
Usage: runlane types [options]
generate frontend task types
Options:
--out <file> TypeScript file to write
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandGenerate standalone frontend types from the configured runtime's tasks catalog (an array or record). This command loads and closes the runtime without starting workers or services.
--out is required. Relative paths resolve from the current directory. Parent directories are created. A successful command replaces the destination atomically: it writes a temporary file in the same directory, then renames it. No timestamp or local path appears in the file. Tasks and stream names are sorted by code unit.
The file imports RunTypes from @runlane/realtime/client. Each task gets helper types, an exported RunTypes alias, and an entry in the exported RunlaneTasks map. Output and streams are omitted when not declared. Task IDs become PascalCase names: answer.write becomes AnswerWrite, and 123.ready becomes Task123Ready.
Output helpers are named <Task>Output; stream helpers are named <Task><StreamName>Part, such as AnswerWriteAnswerPart. Nested objects, arrays, and primitive types stay inline unless a schema title or reference requires a declaration. Those declarations are prefixed with the task name. Generated names contain no $.
Text output reports types generated path=<file> tasks=<count>. With --json, success returns { "types": { "path": "<file>", "tasks": 3 } }.
Generation errors use configuration_invalid and exit code 1. No generated file is written or replaced when:
- The task catalog is missing or empty. Register tasks with
createRunlane({ tasks })in the configured runtime. - A schema has no Standard JSON Schema converter for the required direction. The error names the task and field, such as
streams.answer. Use Zod 4.2+, ArkType 2.1.28+, or Valibot through@valibot/to-json-schema. - Schema conversion fails. The error names the task and field; the original failure is retained as its internal cause.
- Any generated names collide, including task names, output helpers, stream helpers, or named subschemas. The error names both sources.
- An ID has no letters or digits, or produces the reserved name
RunTypesorRunlaneTasks.
Conversion uses the task output schema's input type and each stream schema's output type with the draft-2020-12 target, then json-schema-to-typescript. It never substitutes a looser type after a failure. See generate frontend types for the cross-repository workflow.
runlane trigger
Usage: runlane trigger [options] <taskId> [payload]
create a durable run for a registered task
Options:
--queue <queue> override the task queue
--priority <priority> admission priority: high, normal, or low;
queue policy must allow it
--run-id <runId> operator-provided run id
--run-at <time> earliest start time as an ISO 8601 date/time
--start-before <time> exclusive first-attempt deadline as an ISO
8601 date/time
--idempotency-key <key> deduplicate producer retries for the same
logical work
--idempotency-key-ttl <duration> terminal idempotency owner retention, or
active
--singleton-conflict <policy> active singleton conflict policy: reject or
return_existing
--singleton-key <key> prevent overlapping active runs for the same
logical resource
--concurrency-key <key> partition bounded queue capacity
--meta <json> JSON object to store on the run creation
event
--actor-id <id> operator actor id
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane trigger-batch
Usage: runlane trigger-batch [options]
submit a JSON array in atomic backend chunks
Options:
--file <path> JSON batch file
--chunk-concurrency <n> maximum concurrent backend chunks
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane dev
Usage: runlane dev [options]
run a local maintenance and worker loop
Options:
--no-watch disable task code reloads
--once run one maintenance pass and drain due work before exiting
--queue <queues...> limit worker acquisition to one or more queues
--concurrency <count> number of worker slots
--shutdown-grace <duration> time to wait for running attempts before aborting, or unlimited
--max-runs <count> maximum executed runs for --once
--tick-interval <duration> delivery recovery service interval
--schedule-materialization-limit <count> maximum due schedule occurrences to materialize
--delivery-request-limit <count> maximum due delivery requests to append
--cancellation-finalization-limit <count> maximum expired cancellations to finalize
--timeout-finalization-limit <count> maximum expired attempt deadlines to finalize
--start-expiry-limit <count> maximum unstarted runs to expire
--outbox-claim-limit <count> maximum outbox rows to publish
--worker-id <id> advanced diagnostic identity for leases and outbox claims
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane dev warns once at startup when neither the runtime nor its registered tasks configure retention rules. Run history, events, and logs keep growing until pruned. Production work does not warn. With --json, the warning is one JSON record on stderr with type: "retention_warning", message, and url. See prune old runs.
The dev parent owns the local store, bridge, session, watcher, signals, and output. Task code and maintenance run in a child worker. After the old child finishes its attempts and exits, the new child starts work. This also applies with --no-watch. dev --once runs its one pass in a child without watching. Embedded CLIs with a custom loadRuntime stay in-process without watch.
Local bridge request errors, including missing or invalid tokens, are reported to the client and dev's error output without stopping dev. Losing ownership of the local session lock stops dev.
runlane dev watches the config and every local module it imports, including task helpers. It ignores node_modules. Files read at runtime with fs and .env files are not watched; restart dev after changing those files. Use --no-watch to disable reloads. runlane work and dev --once do not watch.
On a save, dev reloads task code in a new child worker while running attempts finish on the old code, and app triggers stay accepted. See Reload task code for the full sequence and the dev_reloading event.
--shutdown-grace accepts a duration or unlimited for both work and dev. Without the flag, workers and drains use the runtime’s resolved shutdownGrace. A flag governs that worker’s drain even when longer than runtime grace. The shutdown message reports this resolved value, including unlimited. Config-backed dev uses unlimited worker grace and a separate CLI timer for Ctrl+C. With unlimited, only a deliberate second Ctrl+C skips the wait; launcher duplicates within 250 ms count as one signal. JSON reload events are dev_reloading (files, runningAttempts, runIds), dev_reload_waiting (runIds), dev_reloaded (durationMs), and dev_reload_failed. A child crash emits dev_worker_crashed (code, signal); save a watched file to restart it. With --no-watch, restart dev yourself.
runlane work
Usage: runlane work [options]
start a delivery worker
Options:
--maintenance run maintenance services (default), or one pass with --drain
--no-maintenance disable maintenance services
--tick-interval <duration> delivery recovery service interval
--drain process currently due work and exit
--queue <queues...> limit acquisition to one or more queues
--concurrency <count> number of worker slots
--shutdown-grace <duration> time to wait for running attempts before aborting, or unlimited
--max-runs <count> maximum executed runs in drain mode
--lease-duration <duration> run lease duration
--heartbeat-interval <duration> run lease refresh interval
--worker-id <id> advanced diagnostic identity for leases
--schedule-materialization-limit <count> maximum due schedule occurrences to materialize
--delivery-request-limit <count> maximum due delivery requests to append
--cancellation-finalization-limit <count> maximum expired cancellations to finalize
--timeout-finalization-limit <count> maximum expired attempt deadlines to finalize
--start-expiry-limit <count> maximum unstarted runs to expire
--outbox-claim-limit <count> maximum outbox rows to publish
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandBy default, runlane work also starts the runtime's maintenance services in the same process, configured by --tick-interval and the limit options. With --no-maintenance, work runs only delivery and rejects those options. --drain runs one maintenance pass before draining, like dev --once. A single pass has no interval, so --tick-interval is rejected with --drain and with dev --once. On a lane without drain support, both fail before running any maintenance. Storage leases give each maintenance band to one process at a time, with schedule ownership grouped by declared schedule IDs. Processes that register the same declared schedule IDs share one schedule owner. Processes with different scheduled tasks each create runs for their own schedules. Shared schedules still create one run per occurrence. Keep maintenance running for every scheduled task. The first shutdown signal calls runtime close() in work and in each active dev worker. Config-backed dev keeps its parent storage host open until child cleanup finishes. This stops acquisition and new external producer calls at once, while maintenance and running attempts drain concurrently. Attempts can still trigger children and use their task context during grace. Shutdown waits for admitted producer calls and committed observers before closing lane resources. A later signal outside the 250 ms duplicate window skips the remaining attempt grace. worker_started reports maintenance. In work and dev, a maintenance failure does not stop the process: maintenance keeps retrying, and the first failure is reported at shutdown with a non-zero exit code. Each failure is also sent to the runtime's telemetry as it happens, when telemetry is configured; the CLI prints nothing for it before shutdown.
runlane tick
Usage: runlane tick [options]
run one maintenance pass
Options:
--schedule-materialization-limit <count> maximum due schedule occurrences to materialize
--delivery-request-limit <count> maximum due delivery requests to append
--cancellation-finalization-limit <count> maximum expired cancellations to finalize
--timeout-finalization-limit <count> maximum expired attempt deadlines to finalize
--start-expiry-limit <count> maximum unstarted runs to expire
--outbox-claim-limit <count> maximum outbox rows to publish
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandTick summaries include singleton-held schedule fires under scheduleFiresSkipped.
When the retention phase participates in maintenance, tick summaries also report runs pruned, runs physically collected, child records deleted, and retention failures. Line output uses runsPruned, runsCollected, childRecordsDeleted, and retentionFailed. JSON output includes tick.retention for service events and the retention result in one-shot tick output. Retention failures do not reject the maintenance call or fail CLI shutdown; inspect the failure status and telemetry. Other maintenance failures keep their existing error policy.
runlane runs
Usage: runlane runs [options] [command]
inspect durable runs
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for command
Commands:
retry [options] [runId] create a manual retry child run from a failed
run
rerun [options] <runId> create a rerun child from a terminal run
cancel [options] [runId] request cooperative run cancellation
prune [options] prune old terminal runs
logs [options] <runId> read durable application logs
timeline [options] <runId> read the run source timeline
stream [options] <runId> <name> read durable named run output
list [options] list runs
get [options] <runId> get one run
help [command] display help for commandrunlane runs logs
Usage: runlane runs logs [options] <runId>
read durable application logs
Options:
--after <cursor> resume from the API after checkpoint
--limit <count> maximum records in one page
--follow poll until terminal state and the drained log tail
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandLog JSON pages include truncated: boolean, which reports whether the run’s storage quota dropped entries. Storage quotas do not limit the telemetry logger.
runlane runs timeline
Usage: runlane runs timeline [options] <runId>
read the run source timeline
Options:
--after <cursor> resume from the API after checkpoint
--limit <count> maximum records in one page
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane runs stream
Usage: runlane runs stream [options] <runId> <name>
read durable named run output
Options:
--after <cursor> resume from the named reader API after checkpoint
--follow follow until the run and its stream tail settle
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandThe operator commands also accept aliases that follow the API names: runs cancel <runId>, runs retry <runId>, runs rerun <runId>, and runs prune. Their single-ID forms use the same action options as the top-level commands. runs cancel and runs retry also support filtered bulk actions.
runlane runs list
Usage: runlane runs list [options]
list runs
Options:
--cursor <cursor> operator read cursor
--limit <count> maximum runs to return
--status <statuses...> filter by run status
--task <taskIds...> filter by task id
--queue <queues...> filter by queue
--tag <tag> filter by tag
--idempotency-key <key> filter by idempotency key
--singleton-key <key> filter by singleton key
--version <version> filter by starting version in created_at order
--batch <id> filter by raw batch membership in created_at
order
--source-run <runId> filter by linked source run id
--created-from <date> filter createdAt lower bound
--created-to <date> filter createdAt upper bound
--updated-from <date> filter updatedAt lower bound
--updated-to <date> filter updatedAt upper bound
--run-at-from <date> filter runAt lower bound
--run-at-to <date> filter runAt upper bound
--sort-by <field> sort by created_at, updated_at, or run_at
--sort-direction <direction> sort direction asc or desc
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane runs get
Usage: runlane runs get [options] <runId>
get one run
Options:
--events include event history
--cursor <cursor> run event cursor
--limit <count> maximum events to return
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane queues
Usage: runlane queues [options] [command]
inspect and control durable queue admission
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for command
Commands:
pause [options] <name>
resume [options] <name>
limit [options] <name>
reset-limit [options] <name>
get [options] <name>
help [command] display help for commandrunlane queues pause
Usage: runlane queues pause [options] <name>
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane queues resume
Usage: runlane queues resume [options] <name>
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane queues limit
Usage: runlane queues limit [options] <name>
Options:
--total <n> queue-wide capacity
--per-key <n> capacity per concurrency key
--expires-at <iso> future storage-time expiry
--concurrency-key <key> one concurrency key
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane queues reset-limit
Usage: runlane queues reset-limit [options] <name>
Options:
--concurrency-key <key> one concurrency key
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane queues get
Usage: runlane queues get [options] <name>
Options:
--concurrency-key <key> one concurrency key
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane schedules
Usage: runlane schedules [options] [command]
inspect and control declared and runtime schedules
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for command
Commands:
create [options]
update [options] <id>
get [options] <id>
list [options]
delete [options] <id>
activate [options] <id>
deactivate [options] <id>
help [command] display help for commandrunlane schedules create
Usage: runlane schedules create [options]
Options:
--task <task> registered task ID or catalog name
--cron <expression> cron expression
--time-zone <zone> IANA time zone
--every <duration> fixed interval
--starts-at <iso> interval start
--ends-at <iso> interval end
--run-at <iso> one-time fire
--payload <json> task input JSON
--queue <name> registered queue
--external-id <label> nonunique label
--deduplication-key <key> environment-scoped definition key
--no-active create or replace as inactive
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane schedules update
Usage: runlane schedules update [options] <id>
Options:
--task <task> registered task ID or catalog name
--cron <expression> cron expression
--time-zone <zone> IANA time zone
--every <duration> fixed interval
--starts-at <iso> interval start
--ends-at <iso> interval end
--run-at <iso> one-time fire
--payload <json> task input JSON
--queue <name> registered queue
--external-id <label> nonunique label
--deduplication-key <key> environment-scoped definition key
--no-active create or replace as inactive
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane schedules get
Usage: runlane schedules get [options] <id>
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane schedules list
Usage: runlane schedules list [options]
Options:
--task-id <id> filter by task ID
--external-id <label> filter by label
--cursor <cursor> continuation
--limit <n> page size
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane schedules delete
Usage: runlane schedules delete [options] <id>
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane schedules activate
Usage: runlane schedules activate [options] <id>
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane schedules deactivate
Usage: runlane schedules deactivate [options] <id>
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane retry
Usage: runlane retry [options] <runId>
create a manual retry child run from a failed run
Options:
--run-id <runId> operator-provided child run id
--actor-id <id> operator actor id
--queue <queue> override child run queue
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane rerun
Usage: runlane rerun [options] <runId>
create a rerun child from a terminal run
Options:
--queue <queue> override child run queue
--run-id <runId> operator-provided child run id
--actor-id <id> operator actor id
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane cancel
Usage: runlane cancel [options] <runId>
request cooperative run cancellation
Options:
--reason <reason> operator cancellation reason
--actor-id <id> operator actor id
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane prune
Usage: runlane prune [options]
prune old terminal runs
Options:
--older-than <duration-or-date> duration or ISO date cutoff
--status <statuses...> terminal statuses to prune
--limit <count> maximum runs to prune
--cursor <cursor> prune continuation cursor
--actor-id <id> operator actor id
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane adapter
Usage: runlane adapter [options]
operate configured infrastructure providers
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane help
Usage: runlane help [options] [command]
display help for a command
Options:
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane runs retry
Usage: runlane runs retry [options] [runId]
create a manual retry child run from a failed run
Options:
--run-id <runId> operator-provided child run id
--actor-id <id> operator actor id
--status <statuses...> filter by run status
--task <taskIds...> filter by task id
--queue <queue> filter by queue; repeat for multiple queues
--tag <tag> filter by tag
--idempotency-key <key> filter by idempotency key
--singleton-key <key> filter by singleton key
--version <version> filter by starting version in created_at order
--batch <id> filter by raw batch membership in created_at
order
--source-run <runId> filter by linked source run id
--created-from <date> filter createdAt lower bound
--created-to <date> filter createdAt upper bound
--updated-from <date> filter updatedAt lower bound
--updated-to <date> filter updatedAt upper bound
--run-at-from <date> filter runAt lower bound
--run-at-to <date> filter runAt upper bound
--sort-by <field> sort by created_at, updated_at, or run_at
--sort-direction <direction> sort direction asc or desc
--yes apply to every matching run
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandSee bulk cancel and retry for filter flags and --yes.
runlane runs rerun
Usage: runlane runs rerun [options] <runId>
create a rerun child from a terminal run
Options:
--queue <queue> override child run queue
--run-id <runId> operator-provided child run id
--actor-id <id> operator actor id
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandrunlane runs cancel
Usage: runlane runs cancel [options] [runId]
request cooperative run cancellation
Options:
--reason <reason> operator cancellation reason
--actor-id <id> operator actor id
--status <statuses...> filter by run status
--task <taskIds...> filter by task id
--queue <queues...> filter by queue
--tag <tag> filter by tag
--idempotency-key <key> filter by idempotency key
--singleton-key <key> filter by singleton key
--version <version> filter by starting version in created_at order
--batch <id> filter by raw batch membership in created_at
order
--source-run <runId> filter by linked source run id
--created-from <date> filter createdAt lower bound
--created-to <date> filter createdAt upper bound
--updated-from <date> filter updatedAt lower bound
--updated-to <date> filter updatedAt upper bound
--run-at-from <date> filter runAt lower bound
--run-at-to <date> filter runAt upper bound
--sort-by <field> sort by created_at, updated_at, or run_at
--sort-direction <direction> sort direction asc or desc
--yes apply to every matching run
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandSee bulk cancel and retry for filter flags and --yes.
runlane runs prune
Usage: runlane runs prune [options]
prune old terminal runs
Options:
--older-than <duration-or-date> duration or ISO date cutoff
--status <statuses...> terminal statuses to prune
--limit <count> maximum runs to prune
--cursor <cursor> prune continuation cursor
--actor-id <id> operator actor id
-c, --config <path> config module exporting a Runlane CLI config
--json emit JSON output
-h, --help display help for commandBulk cancel and retry
runlane runs cancel [runId] and runlane runs retry [runId] accept filters instead of an ID. Bulk work stays in the CLI and pages through runs.list(); there is no new library API.
runlane runs retry --status failed --task payments.charge
runlane runs retry --status failed --task payments.charge --yes
runlane runs cancel --queue payments --created-to 2026-11-23T00:00:00Z --yesWithout --yes, a filtered command prints the total count and up to five matches, then exits without changes. With --yes, it collects matching IDs across all list pages, acts on each, and prints per-run results and succeeded, skipped, and failed totals. A failure does not stop later actions. Any failure gives exit code 1 and an internal_error containing the batch summary.
Without --status, cancel lists active runs except cancellation_requested; retry lists only failed runs. Explicit status filters are preserved, but preview counts and samples exclude statuses the action cannot change. Execution reports those matches as skipped. Matches are read before actions; concurrent changes can still cause an individual action to fail.
Repeating bulk retry
Bulk retry is not an exactly-once operation. Failed source runs stay failed. Repeating a command can create another retry for an unkeyed source, even when an earlier retry is running or has finished. Keep the batch results and narrow subsequent filters to the sources that still need recovery.
When an idempotency or singleton key is already owned by another run, bulk retry reports that source as skipped and exits successfully if nothing else failed. This also handles a second command after a keyed retry. Released, reset, or expired keys do not prevent another retry. Other storage conflicts still count as failures. A preview checks status eligibility; it cannot detect these ownership skips before execution.
The CLI does not look up retry children per source. The current sourceRunId list filter has no dedicated source index in Postgres, and list queries cannot filter by retry source type. Repeating that query for every source can scan large histories. A pruned child would also be invisible to that lookup. Bulk retry therefore uses the operator API's key-conflict result and makes no promise to suppress repeated unkeyed work. This guard applies only to bulk retry; single-ID retry keeps its existing errors.
Filters and single-ID forms
Both commands accept these list filters:
| Flag | Filter |
|---|---|
--status <statuses...> | Run statuses |
--task <taskIds...> | Task IDs |
--queue <queues...> | Queues |
--tag <tag> | Tag |
--idempotency-key <key> | Idempotency key |
--singleton-key <key> | Singleton key |
--version <version> | Starting version |
--batch <id> | Batch membership |
--source-run <runId> | Linked source |
--created-from <date>, --created-to <date> | Creation time range |
--updated-from <date>, --updated-to <date> | Update time range |
--run-at-from <date>, --run-at-to <date> | Scheduled time range |
--sort-by <field>, --sort-direction <direction> | List order |
A run ID cannot be combined with filters. For single-ID retry, the existing --queue <queue> remains a child queue override. Bulk retry uses --queue as a filter and rejects --run-id. For multiple retry queues, repeat the flag: --queue payments --queue refunds. Each retry queue flag takes one value, preserving single-ID argument order. Both commands accept --actor-id; cancel also accepts --reason. An ID or at least one filter is required; --yes alone never selects all runs.
Retry and rerun output says “new run, new ID” and names the idempotency key taken over, when present. Later same-key triggers dedupe to the new run. A newer live or retained owner blocks the operation.