/v1/tools/job_statusfreeCheck a job
Where a job got to, and its result when it has one. Work that takes longer than a request can hold is handed back as a job id: ask this for it. While it runs: the stage, its count, and fraction_done, how much of the whole job is finished, with fraction_by: time when its steps are weighed by how long they usually take, steps when only counted; and seconds_left, about how long is left, where that can be told; past_usual_time when it has run longer than it usually takes, and how long is left is not known. For a tool’s run it also gives each step’s price and state, the files a finished step made, and the jobs made for the run before it started, with what they came to in all. For a run on a computer, the file it made there, which stays there: its file_id (cf_…), name, size and length. Free.
Fields
| Field | Type | Default | What it is |
|---|---|---|---|
job_id | string | Required |
Call it
Request
curl -X POST https://app.scrub.app/v1/tools/job_status \
-H "Authorization: Bearer $SCRUB_KEY" \
-H "Content-Type: application/json" \
-d '{"job_id":"…"}'Answer
{
"ok": true,
"result": {
"…": "…"
}
}What result holds is said above.
Every call can also answer an error: what comes back. Try it with your key from Account.