Skip to main content
nika.jobs owns the remote job lifecycle.

Submit and keep the identity

Persist job_id before opening a stream. Polling, reconnects, cancellation, artifacts and support tools all share it.

Choose waiting or streaming

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

Aborting a fetch stops the caller waiting. 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.