Jobs
A job is a unit of work — a prompt, optional input data, and configuration — that gets queued, assigned to a worker, processed, and stored.
Job states
Section titled “Job states”| State | Description |
|---|---|
pending | Queued, waiting for a worker |
running | Assigned to a worker, in progress |
completed | Finished successfully, result available |
failed | Errored during processing |
cancelled | Manually cancelled before completion |
Dispatching a job
Section titled “Dispatching a job”modelreins job dispatch \ --prompt "Review this code for security issues" \ --input ./handler.ts \ --provider claude \ --model sonnet \ --priority highJob priority
Section titled “Job priority”Jobs have three priority levels: low, normal (default), and high. Higher priority jobs are picked up first.
Retrieving results
Section titled “Retrieving results”modelreins job result <job-id> # Get the outputmodelreins job info <job-id> # Full metadata: cost, tokens, durationmodelreins job list --status pending # Filter by stateAutomatic retries
Section titled “Automatic retries”If a worker crashes mid-job, the coordinator requeues the job after the configured timeout. See Troubleshooting for stuck job handling.