Skip to content

jobs:events

Terminal window
rai jobs:events [OPTIONS]

Get events for a job.

Output is always JSON (events have no human table form):

  • Default mode prints the raw events object, {"events": [...], "continuation_token": ...}. This matches the historical pre-1.0 shape, so scripts that consume the default form continue to work unchanged.
  • --json mode wraps that object under a job_events key, {"job_events": {"events": [...], "continuation_token": ...}}, to match the wrapper-key shape used by the rest of the CLI under --json (e.g. {"jobs": [...]} from jobs:list).

Use --json when piping into a tool that expects the consistent wrapped shape; otherwise the unwrapped form is fine.

OptionTypeDescription
--typetextJob type (Logic/Prescriptive/Predictive). Required. Default: Sentinel.UNSET.
--idtextJob id. Required. Default: Sentinel.UNSET.
--continuation-tokentextContinuation token from a previous events call (optional). Default: “.
--stream-nametextEvents stream name (optional). Defaults to profiler for Direct Access Logic jobs and progress otherwise.