(status: "failed" | "queued" | "running" | "succeeded" | "cancelled"): boolean import {is_job_finished} from '@fuzdev/zzz/job_types.js'; Whether a job in status is over.
status
returns
boolean 4 declarations
(status: "failed" | "queued" | "running" | "succeeded" | "cancelled"): boolean import {is_job_finished} from '@fuzdev/zzz/job_types.js'; Whether a job in status is over.
statusboolean value + type
"transcription" import {JobKind} from '@fuzdev/zzz/job_types.js'; What a job does.
value + type
{ job_id: string & $brand<"Uuid">; kind: "transcription"; status: "failed" | "queued" | "running" | "succeeded" | "cancelled"; progress: number | null; input_path: string & $brand<...>; ... 6 more ...; stderr: string; } import {JobSnapshot} from '@fuzdev/zzz/job_types.js'; A job as the backend reports it: long-running work on a file that outlives the request that started it. Twin of the backend's JobSnapshot.
job_idtype string & $brand<"Uuid">
kindtype "transcription"
statustype "failed" | "queued" | "running" | "succeeded" | "cancelled"
progressHow far along a running job is, 0 to 1 — null when unknown.
type number | null
input_pathThe file the job works on.
type string & $brand<"DiskfilePath">
output_pathThe file the job wrote, once it succeeded.
type (string & $brand<"DiskfilePath">) | null
commandsThe command lines run so far, in order, for display.
type string[]
queued_atMilliseconds since the epoch.
type number
started_attype number | null
ended_attype number | null
errorWhy a failed job failed.
type string | null
stderrThe tail of the failing tool's stderr — derived from the input file, so render it as text.
type string
value + type
"failed" | "queued" | "running" | "succeeded" | "cancelled" type "failed" | "queued" | "running" | "succeeded" | "cancelled"
import {JobStatus} from '@fuzdev/zzz/job_types.js'; Where a job is in its life. The last three are final.