List the detached jobs on a machine
Returns the machine's jobs — running right now, plus finished ones still retained (about a week; expired jobs are then swept automatically in the background, roughly hourly, driven by job start/list activity — so this very call can be what deletes an older expired job's metadata, log and workspace). Use it to answer 'what is running on the GPU box?', to recover the jobId of work started earlier, or before starting new GPU work so you don't collide with an existing run. Newest first, and by default only the newest 20 — 7 days of retention on a busy machine can mean dozens of records, and returning them all wastes a caller's context; raise limit (page cap 200) or narrow with status when you need more, and the reply reports how many older entries were omitted. If the reply carries skippedJobs/warning, the list is INCOMPLETE — some records were dropped and are not shown.
Request
- Base URL: https://aicommander.dev
- URL: https://aicommander.dev/api/v1/jobs
- Auth: one of:
- none
- HTTP bearer
Query parameters
How the user named the machine, passed exactly as given: an AIC- session code, or — with an API key — a saved alias/hostname.
Look up the one job started with this operation_id instead of listing: the reply is then {ok:true, job} (a JobSummary), and 404 not_found means nothing was accepted under that id (or its record was already pruned — the id is remembered only while the job record exists, about 7 days after the job ends). Other filters are ignored.
Only return jobs in this state. Omit for every retained job. Validated, not ignored: any other value is rejected with 400 naming the field, because a misspelt filter used to return the unfiltered newest page — which reads exactly like a filtered one.
Send true to also return each job's command line. Off by default so command strings are not echoed back unnecessarily.
Return only the newest N jobs. Default 20, minimum 1, page cap 200 — validated, not clamped: a value outside that range is rejected with 400 naming the field. Anything older than the newest N is left out, and the reply reports how many in omitted.
Response
The machine's jobs.
Example response
{
"jobs": [
{
"jobId": "9f2c1b7ad4e05386"
}
],
"skippedJobs": [
{
"field": "job.endedAt",
"jobId": "9f2c1b7ad4e05386"
}
],
"warning": "WARNING: 1 job record on this machine did not match the protocol and is NOT listed here: job 9f2c1b7ad4e05386 (bad field: job.endedAt). The list above is therefore incomplete."
}Changes
No recorded changes to this operation across all 1 revision of this API.