Jobs, progress and results
A job is one piece of classification, training or measurement work. This page explains its states, the model's states that cause most waits, how to read every result exactly once, and what you see when the model moves to new hardware. Queued plans and single chat turns are not jobs; the first table tells them apart.
Status. Jobs live since 2026-10-08, with recovery measured that day; stream sources reviewed on 2026-10-28 and the plan lifecycle on 2026-11-16 for this build.
Jobs, plans and turns
| Unit | What it is | You follow it with | When it is refused or fails |
|---|---|---|---|
| Job | Pages to classify, a model to train or a model to measure: job_ and 24 hexadecimal characters, with a status. | GET /v1/jobs/{job_id} | A refused upload made no job; send it again with the same Idempotency-Key. |
| ComputePlan | Queued work under your own plan_id: stages, a window and a budget. It waits at no cost until capacity for its model is ready (Queued work). | GET /v1/compute/plans/{plan_id}, events | A refused submission admitted nothing; the same plan_id and content replay. |
| Stage | One step of a plan, with its own state and dependencies; plan_id~stage_id is its stream_id. | The plan receipt's stages | A failed stage ends the stages that depend on it; independent stages run on. Transient platform faults are retried (stage failure). |
| Pack | One unit of a stream stage's input, with its own state and output receipt. | GET /v1/streams/{stage_id}/packs/{pack_id} | A pack that keeps failing is dead-lettered: retry it or accept the loss. |
| Chat turn | One chat call, made directly or by a session of a plan. | Its own answer and X-Request-Id | 429 with Retry-After means that turn waits: retry the turn, never resubmit the plan (Rate limits). |
A job's status
status is QUEUED until a page is sent to the model, RUNNING while pages are open, and SUCCEEDED, FAILED or CANCELLED once none is. When a job has pages to send and is not moving, waiting_for says why: model while the model is not ready, credit when your available credit has run out (the job goes on by itself once you add credit), and for a training job token_daily_cap (merged 2026-10-09; Fine-tune a model). GET /v1/jobs/{job_id} describes every field.
curl -s https://weights.fyi/run/v1/jobs/JOB_ID -H "Authorization: Bearer $WEIGHTS_API_KEY"The answer carries no Retry-After. The state is read every 5 s, so poll no faster; for a large batch, every 10 to 30 s is plenty.
The model's states
The model is started when work arrives and stopped after 144 s without any, so that idle time is not run for nobody; you pay for your pages only. Every answer about your work carries its state in model_state, with these codes:
state | For your work |
|---|---|
asleep | Stopped; new work starts it. |
waking_up | Starting; your work waits and begins when it is ready. |
ready | Working. |
going_to_sleep | Stopping; new work starts it again. |
moving | Moving to new hardware; your work is held and resumes on its own. |
paused | We are on it; your work is held and resumes on its own. |
A start took 2 min 12 s to 2 min 31 s in our measurements of 2026-10-08; the quote's typical_ready_seconds says what to expect now. the state also gives message, queued_work_preserved and recovery_action. GET /v1/endpoint reads the state, and POST /v1/endpoint/warm starts the model ahead of your work.
Results, exactly once
Every page has a sequence number, seq, from 1 in the order you sent the pages. Read them with a cursor:
curl -s "https://weights.fyi/run/v1/jobs/JOB_ID/results?after=0" -H "Authorization: Bearer $WEIGHTS_API_KEY"Each answer holds up to 1,000 rows and next_after; ask again with after=next_after until it is null, and you have read every page once. Results stop before the first unfinished page; an unchanged cursor means wait and ask again. An after= above the job's total answers 400 parameter_out_of_range, not an empty list. An answer from hardware the work was taken from is dropped, never written twice; compare input_sha with your text's SHA-256 for proof. Rows come only as an unbroken run of finished rows, with complete, and the full download, results.ndjson, only once the job has finished.
When the model moves to new hardware
You do nothing; this is what you see:
model_state.stateturnsmoving, andexpected_ready_secondscounts down.- Pages being worked on go back into the queue, not counted as failed.
- The state goes
waking_up, thenready, and the work carries on. - The job's log carries
endpoint.interruptedandendpoint.resumed. runslists the runs the job's charges landed in; each page is charged once, where its result landed (Prices and billing).
In the drill on the live service on 2026-10-08 we took the hardware away under a 200,000-page batch at a moment nobody running it knew. 116,992 pages were done; the 768 being worked on went back into the queue; the job showed "Moving to new hardware" 22 s later and was served again 240 s after the hardware went. All 200,000 pages were read back exactly once, none failed, and the job cost $0.476 against a $0.35 quote, because the price then counted the second start; since 2026-10-10 a move adds nothing.
Data read in place
A classification job takes pages in the call; training reads a dataset. ComputePlans name existing data by URI. GET /v1/compute/capabilities lists source forms, formats and readers.
| Schemes | Formats |
|---|---|
s3://, r2://, gs://, az:// and abfss://, https://, hf://, oci:// | Apache Parquet, Apache Arrow IPC (Feather), Lance, NDJSON, seekable Zstandard record packs (byte_range: [start, end] and sha256 per pack), safetensors |
| Step | Call and behavior |
|---|---|
| Check first | POST /v1/compute/plans/dry-run checks one plan's model pins, context window, template options and, when asked, its sources. Nothing is admitted or charged. |
| Create the plan | POST /v1/compute/plans declares stages, dependencies and mounts. Save its stage stream_id values for stream calls. Omit plan-level lazy for ordinary submission; it holds the plan until service dispatch. verify_source: true checks mount sources before admission; a workload-level flag checks that stage only. |
| Register input | POST /v1/streams/{stage_id}/packs takes source_uri, sha256, compressed_bytes and item_count. Use the plan receipt's stream_id. byte_range: [start, end] is end exclusive; hash the fetched bytes before decompression. |
| Defer preparation | Register state: "lazy" pointers; GET /v1/streams/{stage_id}/packs returns deficit and next_lazy_packs. Repost prepared packs as pending, preserving identity, item count and provenance. |
| Fill prepared work | POST /v1/compute/plans/{plan_id}/stages/{stage_id}/materialize uses the stage's lazy_materializer policy to fill pending lookahead. An eligible plan can register its first batch during admission; read the backlog first. Supply actual prepared input paths, digests and counts; this call neither uploads bytes nor probes sources. force_fill: true lifts only the batch-size cap. |
| Verify registration | verify_source: true on the pack, or ?verify_source=1, checks reachability, ranges, size and recognized format headers. Inspect source_probe; lazy prefixes can remain unverified. Source errors refuse admission. |
| Finish input | POST /v1/streams/{stage_id}/seal closes registration of new packs; existing work drains. Managed execution reports results itself. The customer pack completion route requires a pre-existing harness-owned pack; current plan admission does not create such streams. |
| Promote standing work | POST /v1/compute/plans/{plan_id}/promote changes a standing plan to standard scheduling and preserves progress. Read the receipt after a lost response: a second promotion conflicts. It does not release a plan's initial lazy queue. |
| Follow progress | GET /v1/compute/plans/{plan_id} returns current state, what was delivered (outcome, coverage), the budget (accounting) and any stage failure. GET /v1/compute/events returns an account-scoped array; persist each processed seq and resume with after_seq. Use zero for history or the plan's last_event_seq for later events. |
JIT mounts fetch and cache digest-checked bytes when needed; prestage requires prior preparation. OCI needs prestaging. Signed HTTPS URLs must remain valid through execution. A successful probe checks only a short sample; execution verifies the full digest. Record packs contain JSON lines, optionally Zstandard-compressed; columnar files need a compatible workload reader.
Cancelling
DELETE /v1/jobs/{job_id} cancels the pages not yet sent, which are never charged; pages with the model finish. A cancel counts against your token's request rate, so straight after a burst it can answer 429.