CaptureJobRow
Defined in: packages/core/src/schema/capture-job.ts:30
One row of capture_jobs: a job, or one attempt at it.
Properties
Section titled “Properties”attempt
Section titled “attempt”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
Section titled “buildId”buildId:
string|null
Defined in: packages/core/src/schema/capture-job.ts:37
Build the job works on; notify jobs may have none.
cancelRequestedAt
Section titled “cancelRequestedAt”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
Section titled “createdAt”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
Section titled “finishedAt”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
Section titled “maxAttempts”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
Section titled “payload”payload:
string|null
Defined in: packages/core/src/schema/capture-job.ts:50
JSON: request id, traceparent and kind-specific fields.
shardId
Section titled “shardId”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
Section titled “startedAt”startedAt:
string|null
Defined in: packages/core/src/schema/capture-job.ts:55
status
Section titled “status”status:
"queued"|"running"|"failed"|"cancelled"|"done"|"expired"
Defined in: packages/core/src/schema/capture-job.ts:44
updatedAt
Section titled “updatedAt”updatedAt:
string
Defined in: packages/core/src/schema/capture-job.ts:58
visibleAt
Section titled “visibleAt”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.