Skip to main content

View run history and stop a run

Every scheduled or manual run is saved in the run history, with the result of each step. Use it to check that maintenance works, and to find out why a run failed.

Prerequisites​

  • To view runs: your role includes maintenance:read.
  • To stop a run: your role includes maintenance:manage.

Find a run​

You can find runs in two places:

  • All runs: select Janitor → Run history in the sidebar. Search by catalog, schema, or table name, or filter with All statuses and All triggers.
  • Runs of one job: open the job on the Maintenance Jobs page, then select the Runs tab.

Run history list with the search box and the status and trigger filters

ColumnMeaning
Run IDThe run. Select it to open the details.
TableThe table of the job. Shown in Run history only.
Run statusThe result of the run.
TriggerSCHEDULED for a run started by the schedule, MANUAL for a run started with Run.
DurationHow long the run took.
Started atWhen the run started.

Read the status of a run​

StatusMeaning
QueuedThe run is waiting to start.
RunningThe run is working now.
SuccessAll steps succeeded.
PartialSome steps succeeded and some failed. The steps that succeeded keep their result.
FailedThe run failed before any maintenance step succeeded.
CancelledSomeone stopped the run, reset the job, or paused all maintenance in emergency mode.

Check the steps of a run​

  1. Select the Run ID. The run details open.
  2. Check the step table. Each row shows the Stage, the Step, its Status, Duration, and Start time.
  3. Select a step name to open its details.

Run details with the status of the run and the table of steps

A step is Success, Failed, Cancelled, or Skipped. A Skipped step did not start, for example because the run was stopped before it.

The step details show:

FieldMeaning
StageThe maintenance option the step belongs to, for example OPTIMIZE.
StatusThe result of the step.
Started, Ended, DurationWhen the step ran and how long it took.
Query IDThe ID of the query that ran the step, if there was one.
SQLThe statement Janitor ran. Select the copy button to copy it.
LogsMessages from the step, including the error if it failed. Select the copy button to copy them.

To find out why a run failed, open the first step with Failed and read Logs.

Stop a run​

You can stop a run that is Running or Queued.

  1. Open the run details.
  2. Select Stop run. The button shows only while the run is not finished.

After you stop a run:

  • The step that was working becomes Cancelled. The steps after it become Skipped.
  • The run becomes Cancelled, with the message Cancelled by operator.
  • Steps that already succeeded keep their result.
  • The job can run again.

If something goes wrong​

SituationWhat it meansWhat to do
Run is not cancellableThe run already finished.No action needed.
Stop run does not showThe run is Success, Partial, Failed, or Cancelled.No action needed.
A run shows Running for a long time and nothing changesThe job may be stuck.Use Reset state on the job. See Unblock a stuck job with Reset state.

Next steps​