Skip to content

Inspecting runs and jobs

Checking status and logs, run readiness, and execution history.

Inspect

Choose a command by what you want to see:

Purpose Commands
Get a quick overview of the current context and active runs info
Find objects in a list jobs, runs, projects, basedirs
Inspect a selected object show
Trace execution history or compare runs lineage

Overview: info

Start with rotari info for a compact snapshot of the current context:

rotari info

The resolved masterdir, basedir and project, visible config files, running supervisors, run locks, and active or interrupted runs. Each run row also shows the count of jobs with final results, including carried results, and how many of them failed; pending jobs and jobs waiting for a retry as pending; and a best-effort process check for unfinished local jobs. Remote and scheduler jobs are shown as unverified; info does not contact their hosts or schedulers.

rotari info --json

Add --json for structured output. Use the lists below to find other jobs, runs, projects, or state directories, and show to inspect details.

Lists: jobs, runs, projects, basedirs, notifications

The list commands differ in what each row represents:

Command Lists
rotari jobs Unfinished jobs of active, interrupted, or incomplete runs, and recently finished jobs
rotari runs Active, interrupted, and recently finished runs
rotari projects Projects, with their latest run status
rotari basedirs Known state directories (not job working directories)
rotari notifications Notifications runs recorded for the Web inbox, as the inbox shows them

Use these lists to find a project, run, or job, then use show for its details. The runs list shows run STATUS separately from CLIENT. CLIENT describes current aggregate CLI attachment: synchronous run/retry and wait each hold an independent session, and the run is attached while any verified live session remains. Launch mode and the initiating client's last detach reason remain recorded as history; Web and MCP readers do not count as attachments.

Reading run and job states

A finished run is finished, failed, or cancelled; a cancelled run is one whose whole-run cancel was requested, and it keeps exit code 1.

Run lifecycle and job execution are independent. A run can be interrupted while a job still reports running (recorded), or while some jobs already have terminal results. Job phases are the latest persisted observations, not live executor probes: running (recorded) does not prove that the process is still alive. waiting (recorded) and suspended (recorded) have the same limitation. A job rotari has not dispatched yet, such as one waiting for a dependency, shows pending; a job a scheduler has accepted but not started shows waiting (recorded). When an attempt's state is missing or cannot be interpreted, Rotari displays unknown. Completed jobs show success, failed, cancelled, or blocked; results carried from another run are marked (carried).

While a run is active, CLIENT is attached if any live run, retry, or wait session is following it. Otherwise it shows the initiating run/retry client's recorded state, such as detached (async) or detached (Ctrl-D); wait sessions and Web or MCP readers never change that record. If the supervisor cannot be verified, the current connection is unknown; where available, the label retains the last recorded detach reason. A finalized client record shows async (completed) or sync (completed) and retains recorded detach/cancel history; this describes history, not a live connection. A finished run without a finalized client record still shows unknown. These classifications are best-effort and do not contact an executor or scheduler.

Scope and time window

The lists cover state directories known to the master registry, not every directory on disk. basedirs also prints the resolved master directory. Use --basedir DIR on jobs, runs, or projects to inspect one state directory.

For jobs and runs, finished entries default to the last day. Unfinished attempts of active, interrupted, or incomplete runs are always included. Active, interrupted, and incomplete runs are included regardless of age. Their job states are persisted observations: for example, running (recorded) does not assert that an executor is still alive. Jobs of those runs that rotari has not dispatched yet are listed as pending, with - for the attempt ID, right after the newest row of their run.

Use the named filters to narrow jobs by result or execution state. For example, --running shows running jobs, while --filter-failed shows failed jobs; --filter-running and --failed are equivalent long and short forms. Filters in the same group are combined with OR, while a result filter and a state filter together narrow the listing with AND:

rotari jobs --running
rotari jobs --filter-failed --filter-running

Use runs lifecycle filters to narrow the STATUS column. The available choices are running, interrupted, incomplete, finished, failed, and cancelled; --filter-* forms also have shorter aliases, such as --filter-failed / --failed. Multiple lifecycle choices combine with OR. They narrow the existing time window rather than replacing it, so use --since 7d to include older finished runs:

rotari runs --running
rotari runs --filter-failed --filter-cancelled --since 7d
rotari jobs --since 7d
rotari runs --since 7d
rotari projects --basedir DIR

When jobs finds nothing, it names the state directories it searched and the time window. Its default fields are the state, project, attempt ID, command, and finish time in local time without the zone. A project or state directory that every listed job shares is printed once above the table, and an unfinished state is shown without (recorded), such as running; it is still a persisted observation. --wide adds the job names and elapsed times, keeps the shared columns, the time zone, and (recorded), and prints whole state directories and commands. To choose its displayed fields, use --format; see the CLI reference. For scripts, jobs --json and runs --json print the same rows as JSON arrays. Each job has its state, IDs, command, start and finish times, elapsed_seconds (null when unknown), and, for a running job that has written output, quiet_seconds; --json cannot be combined with --format. Each run has its lifecycle, client_status, exit code (null until the run finishes), recorded start and finish times, the working directory (cwd) and host it ran from, the recorded source revisions (sources), and the number of notes on the run itself (note_count).

The project list shows each project's last run and its result, such as failed 7/15 when 7 of its 15 jobs failed. Its suggested commands name the basedir (-b BASEDIR) when a listed project lies outside the default state directory. To inspect a project in another state directory, use rotari show -b DIR -p PROJECT.

Details: show

Use show to inspect a project's current run or pending queue, or a specific run, job, or attempt.

rotari show -p sweep # the project's current run or queue
rotari show RUN_ID # one run
rotari show JOB_ID # one job from the resolved run or queue
rotari show ATTEMPT_ID # one execution attempt, including its logs

Selecting the target

With no selector, show resolves one project from explicit options, configuration/environment defaults, or sole-project discovery, then displays its current run or queue. If more than one project remains, it exits with a hint to use rotari projects; it does not silently switch to a list view.

You can also select a job by name with rotari show JOB_NAME. Passing --run-id latest selects the latest settled run even when the project has a non-empty queue or an active run; an unknown job ID fails instead of showing the queue.

When the selected run is active or interrupted, a non-empty next queue is shown separately after the run; check reports its queued count.

A run's job table and the queue table size each column to their contents. A column that is the same for every listed job, such as the executor or the stage, is printed once above the table, as Executor: slurm (all listed jobs), and left out when it is -. Dependencies are listed as written, so a dependency on a stage or matrix names it rather than each of its jobs, and long commands are shortened. show -j prints a job's full command and expanded dependencies. --wide prints every column in full: the attempt IDs, the submit times, the expanded dependencies, the whole commands, and the columns every job shares. Its ELAPSED column, also printed by show -j, gives a finished job's run time. For a running job it gives how long the job has run and how long ago it last wrote to its logs, such as 12m 03s, quiet 11m 58s, or no output. The ELAPSED column of jobs --wide gives the same value. A running job that has been quiet much longer than usual may be stuck. Logs that an executor keeps on another host are not seen.

Filtering jobs and inspecting failures

rotari show -p sweep --failed
rotari show -p sweep --stage train
rotari show -p sweep --matrix train

--matrix names the matrix by its base job name. For other result selections and per-job conditions, see the CLI reference.

For a run with failed jobs, show prints a Failure summary: line before the job table, with the rotari lineage command that prints only the run's summary and failure causes. It also ends its job table with Failures by cause:, one entry per cause with the number of jobs, their exit codes, the jobs (array tasks as train[3,7,11], at most ten), an example line, the command that shows the first job, and the diagnosis rule's suggestion:

Failures by cause:
  42 CUDA/GPU memory exhausted (exit 1): sweep[7,14,21,28,35,42,49,56,63,70] +32 more
    e.g. torch.OutOfMemoryError: CUDA out of memory (task 7)
    show: rotari show -j att_20261002-124301-d7741cfe-32ab8e9d1-7-0
    fix: Reduce batch size or model memory use, select a GPU with more free memory, and check for other processes using the GPU.
  1 timeout (exit 124): slow
    e.g. timed out after 5s

Each job is classified on its own result: a block by a failed dependency, a cancellation, or a --timeout that rotari enforced comes first, then the job's latest saved rule diagnosis, and otherwise its failure kind (oom, signal, or error; see --filter-failure-kind). A scheduler's time limit or a job's own exit 124, as from GNU timeout, is not rotari's timeout, so it appears under its diagnosis, such as Slurm time limit exceeded, or its other failure kinds, and --filter-failure-kind timeout selects them too. The most frequent cause is listed first. The example line is the matched rule's line, else the error rotari recorded, such as timed out after 5s, else the job's last output line, so a script that only exits nonzero still shows how its output ended:

  3 error (exit 1): train[2,5,9]
    e.g. loss became NaN at step 1200

With result selections or filters, only the listed jobs are grouped. show --run-id RUN_ID --json carries the same groups, with every job ID, as failures; so do lineage RUN_ID --json and the Web UI's run summary.

--filter-failure-cause CAUSE selects one group's jobs by the same classification, in show, copy, run, and retry. CAUSE is the cause as printed, such as timeout or 'CUDA/GPU memory exhausted', or the rule's slug ID such as cuda-gpu-memory-exhausted. For the project's last finished run, each group also prints a retry: command that previews rerunning only its jobs:

rotari show --filter-failure-cause timeout
rotari retry --filter-failure-cause cuda-gpu-memory-exhausted --dry-run

--filter-failure-kind and --filter-diagnosis match any of a job's failure kinds or current-rule diagnoses instead, so they can also select jobs of another group: a job that the kernel killed for memory is grouped by its Host memory exhausted diagnosis but has the failure kinds oom and signal. A memory diagnosis, host or GPU, gives its job the failure kind oom even when only the log showed it.

--filter-host, the --filter-started-* and --filter-finished-* options, --filter-longer-than, --filter-shorter-than, and --filter-diagnosis read each job's attempt files. A job that has no such record, such as a log that was never written, simply does not match. If a file exists but cannot be read or is damaged, the command fails and names the file rather than leaving the job out, so run and retry never decide what to run without it. Repair or remove the file, or add a result filter such as --failed that excludes the job first.

The Web run page lists the same groups in its Failure causes section, above the job timeline: each cause's count, exit codes, example line, and suggestion, with its jobs, which scroll to their rows in the jobs table. A cause's Select button checks exactly its jobs, so the table's Create queue, Append to queue, and Report act on them. On the project's latest run once it has finished, each cause also shows the command that previews a retry of only its jobs.

Logs

Showing one job or attempt includes its logs. To view logs for several jobs, select a stream, or explicitly follow output:

rotari show -p sweep --logs # logs for every job in the selected run
rotari show -p sweep --failed-logs --stream stderr # failed jobs' separate stderr
rotari show -p sweep --job-id JOB_ID --stream stdout --follow
rotari show -p sweep --logs --tail 1 # each job's last line, such as a final metric

show --logs --failed (or --logs --filter-failed) selects the same failed jobs as --failed-logs, including output carried from an older run. Jobs are listed in the order the run defines them, so the members of a matrix and the tasks of an array stay together. --tail N prints only the last N lines of each log, here or for one job, which collects a sweep's final results without searching the logs.

When a run is active and output is a terminal, show JOB_ID and show ATTEMPT_ID follow the selected attempt's log automatically. The default merged log mode follows the combined output file, where stdout and stderr cannot be distinguished. --log-mode separate stores them independently, and --stream chooses which one to follow. Output buffered by the job itself appears only after that program flushes it.

To read a job or attempt's details without its output, use --no-logs:

rotari show JOB_ID --no-logs
rotari show ATTEMPT_ID --no-logs

This keeps the status, timestamps, command, notes, and artifact listing, but omits all log streams and disables automatic following even on a terminal. It requires one job or attempt (an array task or matrix member is also one job), not a project, run, or whole array. It cannot be combined with --logs, --failed-logs, --follow, --stream, --tail, --json, --report, --artifacts, or --wide. Queued jobs still show their definition.

When output is a terminal, log views (including --job-id/-j) longer than 24 lines open in $PAGER (or less -R by default). Use --no-pager to print directly; piped and redirected output is always printed directly.

An older ATTEMPT_ID shows that attempt's own status, timestamps, and logs. Logs are merged by default; use add --log-mode separate when adding a job to preserve stdout and stderr independently. Repeat add --output FILE and add --error FILE to add external destinations independently. If --error is omitted, stderr follows the --output destinations too. Destinations append by default; --open-mode truncate truncates them before execution. The run's saved hosts and diagnoses belong to the latest attempt, so they are not shown for an older one.

JSON and reports

Use --json for structured data, or --report for a Markdown report:

rotari show -p sweep --run-id latest --job-id JOB_ID --json
rotari show ATTEMPT_ID --report
rotari show RUN_ID --report

The run/job JSON view includes the resolved run and project, a jobs array with each job's definition, a finished flag, and a result when available. For a running job, finished is false and no result is present. With an attempt ID, the job JSON also has attempt_id and resolves that attempt as the human view does, so show ATTEMPT_ID --json gives an attempt's project, run, job, and result without its logs. With --failed, the run JSON keeps only the failed jobs' summary results and failure groups (the commands snapshot stays whole), and the job and array JSON keeps only the failed jobs, as the job table does. When a next queue is shown, commands remains the run snapshot and next_queue contains the queued work.

A run report is the run's record, for people as well as agents. It starts with the run's source revisions and its notes, then a table with one row per job: its name, the environment values that differ between the jobs (matrix values among them), its status and exit code, and the last line of its log, which for a failed job is often its error. A log line is not reliably a result, and rotari does not read configuration files, so the results of a run and differences the table cannot show, such as an edited YAML file, belong in a note; a note may hold Markdown, including a table of results. Each job's section follows, with its notes, command, diagnosis, and, for a job that failed or may not have finished, a log excerpt. In the Web UI, the Report button shows the report rendered; Show Markdown shows its source, and Copy copies the Markdown.

A report's log section shows, for a job whose saved diagnosis cites a line found in its log, the lines around that evidence and the last 20 lines, with the skipped lines marked as [... N lines omitted ...]. Otherwise it shows the last 100 lines. Either way it keeps at most 12000 characters.

Artifacts

What a job writes, and how to list, preview, and open it, including the run's Files view, launching TensorBoard or Jupyter Lab, and the Table viewer, is described in Web UI: Artifacts.

Interrupted runs

If a runner exits before finalizing its run, show reports the interrupted run and blocks run until you acknowledge it. First confirm that all jobs have stopped:

rotari show -p sweep

Then execute the rotari unlock command printed by show (for example, rotari unlock -r RUN_ID). The run took its jobs from the queue when it started, so the queue does not bring them back; rerun the ones that failed or did not finish from the run itself, as unlock suggests:

rotari retry -p sweep --run-id RUN_ID

Without an explicit run ID, unlock is also safe to call when the project does not exist or has no lock/interrupted run: it succeeds without changing state. With --run-id, a missing or mismatched run remains an error.

Use retry or result filters when the interrupted run contains completed jobs. rotari reset clears only the queue for the next run, even while a run is active or interrupted; it does not recover the run. If the project does not exist yet, reset initializes an empty project, so it can safely start a batch-building script. unlock --dry-run --json assesses coordinator and managed-execution evidence before either finalization or release. Active evidence always blocks; unknown evidence requires --assume-stopped after independent confirmation. Use unlock only after confirming unknown or unchecked interrupted work has stopped.

Run lineage

Use lineage as the run history and comparison view. With no run IDs, it shows the whole sequence oldest first:

rotari lineage -p sweep
rotari lineage -p sweep --json

With one run ID it shows that run's summary. With two run IDs it compares them. With three or more run IDs it shows a job-by-run result grid:

rotari lineage -p sweep RUN_ID
rotari lineage -p sweep RUN_A RUN_B
rotari lineage -p sweep --json RUN_A RUN_B
rotari lineage -p sweep RUN_A RUN_B RUN_C

lineage summarizes jobs that were fixed, are still failing, or newly fail, with each run's failure cause as show groups it (the CAUSE column, and from_cause, to_cause, and cause_changed in JSON), so a job that still fails for a different reason stands out; jobs added or removed; jobs whose command, executor, executor options, environment, working directory, stage, or dependencies changed; and jobs whose result was carried forward instead of re-executed, marked (carried) in the RESULT column. The tasks of an array that read the same share one row, such as train[1,2,4], and so do the tasks listed under a shared definition change. Jobs whose result and definition did not change are hidden, and the line that counts them names them. Jobs are matched by origin when the origin points to the compared run; otherwise named jobs are matched by name. The one-run summary also counts failed jobs by diagnosis, groups them by cause as show does, and reports their source-run origins, including new for jobs without an origin.

Notes on runs

A note says why a run was made or what its results showed, for whoever reads the runs later, person or agent. Give the reason when the run starts, and add conclusions after:

rotari run -p sweep --note "lr 0.1 with one epoch of warmup"
rotari note RUN_ID "warmup makes lr 0.1 trainable; best is bs 48"
rotari note ATTEMPT_ID "NaN at step 12: the learning rate, not a bug"

retry --note works as run --note does, and a --dry-run preview shows the note without recording it. A note on an attempt belongs to that job. Notes are only ever added; they never change a run's results. show for a run lists its notes, show -j the job's, and lineage RUN_ID and lineage RUN_A RUN_B each run's. On the Web run page, the Report button shows the run's notes, rendered as Markdown, in the run report (see "JSON and reports" above), the run's own notes appear at the top of the page, and a job with notes has a Notes button in its row showing their number; a job without notes has a disabled Notes button. The run history, lineage -p PROJECT, shows each run's first note in its NOTE column, and in its CODE column whether the code changed since the run before (see below).

Which code a run executed

Before a run starts its jobs, it records the version-control revision of each repository its executed jobs run from, in the run's sources.json. For git it records HEAD and whether tracked files had uncommitted changes. For jj, colocated with git or not, it first snapshots the working copy (one jj operation), so the recorded commit ID covers edits nobody committed; it also records the change ID. A directory outside any repository records nothing.

show for a run and lineage RUN_ID print one Source: line per repository, such as Source: git 89281f8c3a1b (uncommitted changes) in /home/me/project, or (clean) when tracked files matched the commit; show -j prints the job's. lineage RUN_A RUN_B says whether each repository's code changed, is unchanged, or is unknown: one run did not record it (its jobs there were carried, or the run predates source recording), its revision could not be read, or a git working tree had uncommitted changes, so the same commit may hold different code. Commit before running, or use jj, to make the comparison exact. The commit ID does not cover installed packages or files outside the repository.

Check run readiness

To check whether a project can start its queued run without changing any state:

rotari check sweep

check reports whether the project is ready to run, together with its project, queue, and lock state. It exits with status 0 when the queued run can start and status 1 otherwise. Pass --json for machine-readable output, or --deep to also check executables and local working directories on the current host. Both check and reset accept the project name as an optional positional argument; do not combine it with --project-name.

A project that does not exist yet is reported as state=empty with zero queued jobs and exit status 1; check does not create the project.

The command does not reserve the project. Like every command that reads the run lock, it removes a stale lock left by a coordinator that died on this host, but only when the lock, metadata, and run directory agree; the run stays interrupted until unlock. run and reset repeat the applicable checks before changing state, so they remain safe if the project changes after check returns. Inconsistent saved state is reported instead of starting or recovering a run.