Skip to content

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.

StateDescription
pendingQueued, waiting for a worker
runningAssigned to a worker, in progress
completedFinished successfully, result available
failedErrored during processing
cancelledManually cancelled before completion
Terminal window
modelreins job dispatch \
--prompt "Review this code for security issues" \
--input ./handler.ts \
--provider claude \
--model sonnet \
--priority high

Jobs have three priority levels: low, normal (default), and high. Higher priority jobs are picked up first.

Terminal window
modelreins job result <job-id> # Get the output
modelreins job info <job-id> # Full metadata: cost, tokens, duration
modelreins job list --status pending # Filter by state

If a worker crashes mid-job, the coordinator requeues the job after the configured timeout. See Troubleshooting for stuck job handling.