jobd_logs
Read the last portion of a job's captured stdout/stderr to check progress mid-run, diagnose errors, or retrieve final output.
Instructions
Tail the captured stdout/stderr of a job (workers stream output to the broker's per-job log as it runs). Returns log_tail (last tail_bytes, default 8 KiB, max 1 MiB) plus size_bytes/returned_bytes/truncated — works for running AND finished jobs. Use to check progress mid-run, diagnose a failure's traceback, or grab a job's final output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | Numeric job id whose captured output to read. | |
| tail_bytes | No | How many bytes from the END of the log to return (server caps reads at 1 MiB). Raise for context, lower for a quick liveness peek. |