Skip to content

Job Tree

The Job Tree tab of the job page shows the ops of a Job as a tree that looks like the rule they come from. The tree grows live as the job advances: each op shows a spinner while it runs, and its status and duration when it ends.

The tree

Each row of the tree is an op of the rule:

  • Status icon - The status of the op. A spinning icon means the op is running right now.
  • Op icon and text - The icon and the name of the op, as in the rule. Hover the text to see the op key.
  • Badges - Extra information about the op:
    • ×N - The op ran several times, in a loop or in a rule called several times.
    • Retries - The op failed and was retried from a trap.
    • pid - The op ran in a forked process, in a parallel block for example.
    • runtime - The op is not in the rule version shown, it was added when the job ran.
    • Errors and warnings - How many error and warning log entries the op has.
  • Elapsed - How long the op took, ticking live while it runs.

The steps of the job and the path of the ops running or failed are expanded automatically. Click the caret, or double click the row, to expand or collapse an op.

Op statuses

Status Meaning
Running The op is running right now.
Trapped The op failed and the job is waiting for a user to decide what to do.
Error The op failed.
Cancelled The job was cancelled while the op was running.
Warning The op logged a warning.
Skipped The op failed and was skipped from a trap.
Success The op ended fine.
Pending The job is running and has not reached the op yet.
Not run The job ended and the op never ran, in an IF branch not taken for example.
Disabled The op is disabled in the rule.

The status of an op is the worst status of its children, so an error deep in the tree also shows on its parents.

Toolbar

  • All and the step names - Show all the steps of the job, or only one of them.
  • Search ops - Show only the ops whose text matches.
  • Errors only - Show only the ops with errors, warnings, traps or cancelled, and their parents.
  • Hide not run - Hide the ops that never ran.
  • Follow - While the job is running, keep the op running in view; an open op detail shows that op too, and moves with the job. Picking another op stops following, so the tree stays on the op you read; check Follow again to go back to the op running. Only visible while the job is running.
  • Rule - The rule and the rule version the job ran.
  • Expand all, Collapse all and Refresh.

Op detail

Click an op to open its detail on the right side of the tree:

  • The status, op key, start date, elapsed time, retries, processes and called rule of the op.
  • The runs of the op, when it ran several times.
  • The log entries of the op. Check Include children to also show the log entries of the ops inside it, and Debug to show the debug entries.

Each log entry has the same actions than in the log, and a link to open it in the Log tab, where you can see what happened around it. Double click a log entry to see the full message text.

Older jobs

Jobs that ran before the Job Tree existed do not have the information of each op. For those jobs, the tree is rebuilt from the job log and shows an Inferred tag. The ops, their statuses and durations are an estimation in that case.

When the debug entries of a job were purged, the rows that tell when each op started are gone too. The tree then shows as run the ops that left other log entries, and the ops that contain them, with the status of their worst entry. The ops that left no entries show as not run, even if they ran. The Inferred tag tooltip tells this case apart.

Rule versions no longer available

When the rule version a job ran no longer exists, for example because old rule versions were purged, the tree cannot show that rule. It shows only the ops the job ran, as they ran, and a Rule version N not found tag in the toolbar. The ops are not marked as runtime in that case, since there is no rule to compare them with.