nika.jobs owns the remote job lifecycle.
Submit and keep the identity
job_id before opening a stream. Polling, reconnects, cancellation,
artifacts and support tools all share it.
Choose waiting or streaming
- Poll to terminal
- Stream events
run() applies the configured poll interval, timeout and backoff. stream()
uses SSE and ends only on a terminal event.
Cancel work, not just the request
jobs.cancel() asks the service to
cancel the job. Product interfaces often need both actions.
Lifecycle
REMOTE JOB ยท PREVIEW STATE MACHINE
Continue
SSE streaming
Reconnect without inventing terminal state.
Artifacts
Collect the jobโs outputs.
Errors
Handle job failure and cancellation separately.
Method index
Scan the complete namespace.