Skip to content

jobs:events

Terminal window
rai jobs:events [OPTIONS]

Get events for a job.

Events have no human table form. Output is machine-readable:

  • Default table mode still prints the historical raw JSON 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 / --output json 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 machine-readable output modes (e.g. {"jobs": [...]} from jobs list).
  • --output yaml uses the same job_events wrapper and emits YAML.

Use --output json or --output yaml when piping into a tool that expects the consistent wrapped shape; otherwise the unwrapped default JSON 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.