job_log
Retrieve and inspect a job's stdout, stderr, or log files with filtering, progress summaries, and removal of ANSI codes and harmless errors to diagnose runs.
Instructions
Tail of a job's stdout (stream='out'), stderr ('err') or of file: a path or glob relative to the job's
working directory (%j %x %A %a allowed, e.g. 'logs/%x-%j-r*.log' or 'results/run-%j/train.log'; at most 20
files). For array jobs pass the task id (123_4) to see one task.
The text is cleaned: ANSI colours and binary bytes removed, \r progress updates collapsed to their last state
(raw=True: as written). grep: an extended regex, matched per line (also on \r updates and in binary logs).
progress=True: instead of text, the latest state of each progress bar per file (label, n, total, percent, rate,
elapsed, eta; kind loading / warmup / work: 'Loading weights 723/723' is not training).
hide_benign=True: drop known-harmless lines and tracebacks (vLLM usage-stats TLS error, shutdown noise, srun's
'forcing job termination', ...); counted in benign_hidden. A log missing while the job is pending or in its
first minutes is normal (node prolog).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | ||
| file | No | ||
| grep | No | ||
| lines | No | ||
| job_id | Yes | ||
| stream | No | out | |
| progress | No | ||
| hide_benign | No |