Skip to content

CaptureJobRow

Defined in: packages/core/src/schema/capture-job.ts:30

One row of capture_jobs: a job, or one attempt at it.

attempt: number

Defined in: packages/core/src/schema/capture-job.ts:41

Job row: attempts started so far. Attempt row: its number, from 1.


buildId: string | null

Defined in: packages/core/src/schema/capture-job.ts:37

Build the job works on; notify jobs may have none.


cancelRequestedAt: string | null

Defined in: packages/core/src/schema/capture-job.ts:52

Set once cancel was asked for; the holder turns it into runner.cancel.


createdAt: string

Defined in: packages/core/src/schema/capture-job.ts:57


entry: CaptureJobEntry

Defined in: packages/core/src/schema/capture-job.ts:32


error: string | null

Defined in: packages/core/src/schema/capture-job.ts:54

Job row: the last attempt’s error. Attempt row: its own.


finishedAt: string | null

Defined in: packages/core/src/schema/capture-job.ts:56


id: string

Defined in: packages/core/src/schema/capture-job.ts:31


jobId: string

Defined in: packages/core/src/schema/capture-job.ts:34

The job this row belongs to (a job row’s own id).


kind: CaptureJobKind

Defined in: packages/core/src/schema/capture-job.ts:35


maxAttempts: number

Defined in: packages/core/src/schema/capture-job.ts:43

Attempts allowed in total (testing.retries + 1); copied onto attempt rows.


owner: string | null

Defined in: packages/core/src/schema/capture-job.ts:48

Instance holding an attempt; null on job rows.


payload: string | null

Defined in: packages/core/src/schema/capture-job.ts:50

JSON: request id, traceparent and kind-specific fields.


shardId: string | null

Defined in: packages/core/src/schema/capture-job.ts:39

capture_shards row a shard job renders; null for the build’s own job.


startedAt: string | null

Defined in: packages/core/src/schema/capture-job.ts:55


status: "queued" | "running" | "failed" | "cancelled" | "done" | "expired"

Defined in: packages/core/src/schema/capture-job.ts:44


updatedAt: string

Defined in: packages/core/src/schema/capture-job.ts:58


visibleAt: string | null

Defined in: packages/core/src/schema/capture-job.ts:46

Queued job: when it may be claimed. Running attempt: its lease expiry. Otherwise null.