oxo-flow status#
Show execution status from a checkpoint file. Displays which rules completed
successfully, which failed, and — with --timing — per-rule wall-clock times
and total runtime.
For scripted supervision that must block until a run finishes, use
oxo-flow wait instead: it polls the same checkpoint plus the
workdir lock/background pid and returns a structured exit status.
Usage#
Arguments#
| Argument | Description |
|---|---|
[CHECKPOINT] |
Path to a checkpoint JSON file. Defaults to .oxo-flow/checkpoint.json in the current directory. A workflow (.oxoflow) file is also accepted: its sibling <workflow-dir>/.oxo-flow/checkpoint.json is auto-resolved when it exists |
Options#
| Option | Short | Description |
|---|---|---|
--workdir <DIR> |
Resolve the default checkpoint under this run directory (<DIR>/.oxo-flow/checkpoint.json) — the same semantics as run --workdir; ignored when an explicit CHECKPOINT path is given |
|
--timing |
Show per-rule wall-clock times, sampled peak RSS, and total runtime, slowest first | |
--limit <LIMIT> |
-n |
Maximum number of rules in the --timing view (default: 10; requires --timing) |
--json |
Output machine-readable JSON to stdout | |
--verbose |
-v |
Enable debug-level logging (global) |
--quiet |
— | Suppress informational output — the version banner and tracing log lines are omitted; the checkpoint listing, warnings, and --json output are unaffected (global) |
--no-color |
— | Disable colored output, also respects the NO_COLOR environment variable (global) |
Examples#
# Status from the default checkpoint in the current directory
oxo-flow status
# Status from an explicit checkpoint
oxo-flow status .oxo-flow/checkpoint.json
# Same thing via the workflow file — resolves .oxo-flow/checkpoint.json
# next to it when that exists (handy while a run is live)
oxo-flow status pipeline.oxoflow
# Status for a run that executed with --workdir somewhere else
oxo-flow status --workdir runs/cohort-2026-09
# Per-rule timings, slowest 5 rules
oxo-flow status --timing -n 5
# Machine-readable output including timings
oxo-flow status --timing --json
Workflow-file arguments#
Passing a workflow (.oxoflow) file instead of a checkpoint is a common
mistake — especially mid-run, when the natural instinct is to point status
at the pipeline definition. status handles it instead of rejecting it:
- If
<workflow-dir>/.oxo-flow/checkpoint.jsonexists, it is used directly and the resolution is printed:
Note: 'pipeline.oxoflow' is a workflow file — using its sibling checkpoint './.oxo-flow/checkpoint.json'.
- If no sibling checkpoint exists, the error names the exact path that was checked and how to create one:
Warning: 'pipeline.oxoflow' appears to be a workflow file, not a checkpoint.
No checkpoint found at './.oxo-flow/checkpoint.json' — 'status' expects a checkpoint file (JSON).
Run 'oxo-flow run pipeline.oxoflow' first to create one.
An explicit non-workflow CHECKPOINT path is never second-guessed.
Output#
oxo-flow v0.32.0 — Rust-native bioinformatics pipeline engine
Status: Status for checkpoint: .oxo-flow/checkpoint.json
State as of 118s ago (checkpoint written 14:32:07 local)
Completed: 3
Failed: 1
Skipped (when-gated off): 2
Completed rules:
✓ align
✓ sort_bam
✓ trim_reads
Failed rules:
✗ mark_duplicates
Skipped (when condition false):
⊘ filter_cohort_S2
⊘ filter_cohort_S1
Snapshot freshness#
status reads a flushed snapshot of the run, not live state — the engine
writes the checkpoint periodically, so on a busy run the file can lag
real execution by a minute or more. One line under the banner
reports how old the snapshot is:
When the age exceeds 5 minutes the line switches to a warning — on a healthy run this is flush lag, not necessarily stalled progress:
Warning: Snapshot is 412s old (checkpoint written 14:32:07 local) — flush lag, not necessarily stalled progress
The age is computed from the checkpoint file's modification time, so it also reflects out-of-band writes (e.g. a monitoring wrapper copying the file). When the mtime is unavailable the line is omitted entirely.
When-gated-off rules#
A rule whose when condition evaluated to false is a skip, not a
failure. The executor never writes such a rule into failed_rules (the
verdict prunes any stale entry), and the display also reconciles legacy
checkpoints: an entry in failed_rules whose recorded verdict in
when_verdicts is false is reported as gated-off instead of failed —
under Skipped (when condition false) in the text view and in the
skipped_by_when JSON key instead of failed. The same
reconciliation applies to the resume banner: rules whose recorded verdict is
false are counted as skips there, and the gate is re-judged on the resume
(see Checkpointing and Resuming).
Completed: 2
Failed: 0
Skipped (when-gated off): 1
Completed rules:
✓ trim
✓ align
Skipped (when condition false):
⊘ qc_report — condition evaluated to false
Staleness reasons#
When the checkpoint's workflow file is still present and parseable, status
classifies every completed rule exactly the way run would and
explains why each rule would re-run right now — output deleted, input
manifest mismatch, config change, or a cascade from an upstream rule. The
section (and the staleness JSON key) appears only when at least one
completed rule would re-run — an all-up-to-date checkpoint shows just the
plain completed/failed listing:
Staleness reasons (as of now):
why each completed rule would re-run under the current workflow+config
✓ align — input changed (recorded input manifest (paths/size/mtime) no longer matches disk)
✓ trim_reads — up to date
Rules shown as up to date would keep their checkpoint credit on the next
run. The same map is available in --json output:
"staleness": {
"align": {
"status": "input changed",
"detail": "recorded input manifest (paths/size/mtime) no longer matches disk"
}
}
The classification is read-only: it never writes to the checkpoint or records baselines on disk. When the workflow file is missing or no longer parses, the section degrades to the plain completed/failed listing.
Orphaned completions#
A sample_pattern discovery domain is
re-derived from disk on every plan. The checkpoint persists the domain the
completion records were built from (sample_pattern_domains, unioned per
declared pattern), so status can tell when a sample file has disappeared:
the instance drops out of the current plan, but the checkpoint keeps
claiming it completed and its recorded output stays on disk. In addition to
listing it under Completed rules (the record is still there), status
reports it on stderr (in --json mode too, keeping stdout one document)
and in the additive orphaned_completions JSON key:
Warning: 1 instance completed with sample_pattern 'data/{sample}.txt' whose sample file is no longer discovered — the checkpoint still claims it as complete, but it is not in the current plan; recorded outputs are left on disk (never deleted automatically):
⚠ count_auto-discovered_b — sample 'b' is gone from the discovery domain (recorded output: res/b.count)
hint: restore the sample file to re-admit it (a changed input re-executes the rule); if the sample is retired, remove the stale output and completion record
"orphaned_completions": [
{
"rule": "count_auto-discovered_b",
"sample": "b",
"pattern": "data/{sample}.txt",
"outputs": ["res/b.count"]
}
]
The key appears only when at least one completion is orphaned — an
unchanged domain writes nothing. outputs lists the rule's recorded
declared outputs and stays an empty array when the checkpoint has no output
manifest for it (unknown is never fabricated). Nothing is ever deleted:
restoring the sample file clears the report and, when its content changed,
the existing input-manifest invalidation re-executes the rule
(see Input changes and manifest invalidation).
Because the persisted domain is a union, the report survives later runs
until the completion claim is resolved. Checkpoints written before this
field existed load with no recorded domain, so they report nothing until
the next run records one. For a bundle run (the workflow extracted under
the system temp dir, data under the recorded --workdir), status applies
the same discovery fallback as run, so real samples are never mistaken
for vanished ones. When every sample file is gone the workflow can
no longer expand (an empty {sample} domain must not run with the
placeholder unbound), and run/dry-run fail loudly; status still
reports every recorded discovery completion from the persisted domain in
addition to the completed listing.
With --timing, the rule list is replaced by a wall-time view (slowest
first):
Completed: 3
Failed: 0
Rule timings: (top 3, total 45.2s)
✓ align (30.1s) peak 29000/32000 MiB ⚠
✓ sort_bam (12.3s) peak 8100/32000 MiB
✓ trim_reads (2.8s)
With --json, output goes to stdout:
{
"command": "status",
"checkpoint": ".oxo-flow/checkpoint.json",
"workflow": "/abs/path/pipeline.oxoflow",
"checkpoint_mtime": "2026-10-11T14:32:07Z",
"snapshot_age_secs": 118,
"completed": ["align", "sort_bam", "trim_reads"],
"failed": [],
"skipped_by_when": ["qc_report"],
"staleness": {
"align": {
"status": "input changed",
"detail": "recorded input manifest (paths/size/mtime) no longer matches disk"
}
},
"timings": {
"align": 30.1,
"sort_bam": 12.3,
"trim_reads": 2.8
},
"total_time_secs": 45.2,
"memory": {
"align": { "max_memory_mb": 29000, "memory_limit_mb": 32000 },
"sort_bam": { "max_memory_mb": 8100, "memory_limit_mb": 32000 }
}
}
timings, total_time_secs, and memory are only present with
--timing; memory only lists rules with a sampled peak-RSS
measurement. checkpoint_mtime (RFC 3339, UTC) and snapshot_age_secs
appear whenever the file's modification time can be read —
see Snapshot freshness. staleness appears
whenever the workflow file can be loaded for classification and at
least one completed rule would re-run (see
Staleness reasons). orphaned_completions appears
only when a previously discovered sample is gone from the
sample_pattern domain (see Orphaned completions).
skipped_by_when appears only
when at least one failed_rules entry is actually when-gated-off; the
verdicts themselves live in the checkpoint file's when_verdicts map and
are not duplicated into the JSON.
--json error contract#
With --json, stdout is always exactly one JSON document, success or
failure. A missing checkpoint, an unreadable file, or a malformed checkpoint
used to exit 1 with empty stdout; it now prints the shared failure envelope
and still exits 1:
{
"command": "status",
"checkpoint": "absent-checkpoint.json",
"errors": [
{"code": "CHECKPOINT", "message": "failed to load checkpoint from 'absent-checkpoint.json'. …"}
]
}
code is CHECKPOINT for checkpoint resolution/load failures; the message
carries the same detail the human stderr report shows (including the
workflow-file-as-checkpoint mistake). Consumers can therefore parse one
document shape across validate, lint, dry-run, and status.
Checkpoint File Format#
The checkpoint file is JSON with the following structure:
{
"checkpoint_format_version": 1,
"completed_rules": ["trim_reads", "align", "sort_bam"],
"failed_rules": ["mark_duplicates"],
"when_verdicts": {
"filter_cohort_S1": true,
"filter_cohort_S2": false
},
"benchmarks": {
"trim_reads": {
"rule": "trim_reads",
"wall_time_secs": 42.5,
"max_memory_mb": 1024,
"memory_limit_mb": 4096,
"cpu_seconds": 38.2,
"retries": 0
}
},
"workflow_path": "pipeline.oxoflow",
"config_snapshot": {
"min_quality": "20"
},
"rule_fingerprints": {
"trim_reads": "sha256:1a2b3c…",
"align": "sha256:4d5e6f…"
},
"input_manifests": {
"align": [
{ "path": "trimmed/S1.fq.gz", "size": 48213, "mtime_nanos": 1790300000000000000,
"hash": "sha256:9f2a…", "remote": null,
"is_symlink": false, "link_target": null }
]
},
"output_manifests": {
"align": [
{ "path": "aligned/S1.bam", "size": 1048576, "sha256": "sha256:7c1d…" }
]
},
"sample_pattern_domains": {
"data/{sample}.txt": [
[["sample", "S1"]], [["sample", "S2"]]
]
},
"tombstones": {
"align": ["aligned/S1.bam"]
},
"reentries": [
{
"round": 1,
"rule": "discover",
"group": "batch",
"samples": ["S4", "S5"],
"pairs": []
}
]
}
checkpoint_format_version is the on-disk format marker the engine writes
into every checkpoint. If the recorded version is newer than the running
engine's, the checkpoint was written by a future build whose format this
engine cannot prove it understands: status still shows the recorded listing
(inspection is its purpose) but prints a trust warning, while the execution
surfaces (run, --resume-failed, resume) refuse outright — see
Checkpoint format version. A checkpoint
without the marker predates it and is treated as compatible.
config_snapshot records the effective config values (sensitive keys stored
as SHA-256 digests) and rule_fingerprints the structural fingerprints that
drive precise invalidation.
when_verdicts records, per rule instance, the runtime verdict of its
when gate (true/false) — used for config-change replay and to
distinguish when-gated skips from real failures in status output.
input_manifests records, per completed rule, every resolved input file
(path, size, mtime in nanoseconds, and a content hash for files up to
64 MiB) so later runs detect changed inputs. Each entry also
carries is_symlink and link_target (the lexical link target for
symlinked files) — display-only facts: they never influence invalidation
by themselves, but a symlinked input is announced once per run and a
size collapse through the link surfaces as (TRUNCATED) in the
invalidation diff.
output_manifests records, per successful rule, each expanded declared
output with its size and, for regular files up to
OXO_FLOW_MANIFEST_HASH_MAX_BYTES (default 64 MiB), a sha256 content
hash — recorded independently of --provenance. resume verifies this
manifest before reusing a completed rule; an entry without a sha256
(over-cap or non-regular output) is unverified. See
Output manifests and strict resume verification.
sample_pattern_domains records, per declared sample_pattern, the
samples the filesystem scan discovered (persisted canonically as
key-sorted wildcard combos and unioned across runs) — the record that lets
status, dry-run, and run name completions whose sample file has
vanished. See Orphaned completions.
tombstones lists
outputs of temporary
rules — and of transform map rules whose chunk files a
transform.cleanup = true combine deleted — that were deleted after a
successful run. The rule stays skipped until a dependent needs those outputs
again (then it regenerates via cascade-up). reentries records checkpoint
re-entry contributions (round, checkpoint rule, group, samples, pairs) so resumes
replay them deterministically and revoke them when the rule is invalidated
(see Checkpoint re-entry).
Every key above is omitted from the JSON when empty — a minimal workflow
with no [config] section, no temporaries, no when-gates, and no
re-entries writes a much smaller checkpoint containing only
completed_rules, failed_rules, benchmarks, workflow_path,
workdir, rule_fingerprints, rule_fingerprints_no_input, and
rule_runs.
Notes#
- Checkpoint files are written automatically during
oxo-flow runexecution --timingreads the per-rule benchmarks recorded in the checkpoint by CLI runs (wall time, peak RSS) — no separate database is involved; web- initiated runs keep their own records in the web service's database, and their checkpoint timings are equally readable viastatusfrom the run's workdir- Use
statusto inspect progress of long-running pipelines, especially on clusters - The checkpoint file is not updated after the pipeline completes — it reflects the state at the last write; the snapshot-age line (and
snapshot_age_secsin JSON) tells you exactly how far behind that write is - Exits with code
0regardless of the pipeline's success or failure - Rule order in
--timingoutput is by wall-clock time descending, so the most expensive rules surface first