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.
Type Declaration
Section titled “Type Declaration”attempt?
Section titled “attempt?”
optionalattempt?:number
Attempt number from 1 (database queue).
optionaldata?:Record<string,unknown>
Kind-specific fields given at enqueue.
jobId?
Section titled “jobId?”
optionaljobId?:string
Id of the job row (database queue).
optionalkind?:CaptureJobKind
Job kind; absent on queues that only carry capture jobs (remote, IPC).
maxAttempts?
Section titled “maxAttempts?”
optionalmaxAttempts?:number