Skip to content

ConsumerJob

ConsumerJob = PollableJob & object

Defined in: packages/core/src/capture/consumer/types.ts:13

A polled job as the consumer sees it: database jobs carry the extra fields, others omit them.

optional attempt?: number

Attempt number from 1 (database queue).

optional data?: Record<string, unknown>

Kind-specific fields given at enqueue.

optional jobId?: string

Id of the job row (database queue).

optional kind?: CaptureJobKind

Job kind; absent on queues that only carry capture jobs (remote, IPC).

optional maxAttempts?: number