slurm_get_job_output
Monitor training progress by tailing the last lines of a Slurm job's stdout log file.
Instructions
Tail the stdout log file of a Slurm job to monitor training progress.
Reads the last N lines of the job's output file. If log_path is omitted, defaults to slurm-{job_id}.out in the user's home directory.
Args: job_id: Slurm job ID. host: Slurm head node hostname (overrides SLURM_HOST). log_path: Explicit path to the log file (optional). lines: Number of lines to return (default: 50). gateway_id: Gateway UUID for the target site.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | ||
| lines | No | ||
| job_id | Yes | ||
| log_path | No | ||
| gateway_id | No |