Skip to content

Interface: KyooJobToEnqueue<T> ​

Describes the shape of a job which should be enqueued.

Type Parameters ​

Type ParameterDefault type
Tany

Properties ​

PropertyTypeDescription
expiration?DateTime<boolean>Absolute Luxon expiration instant.
headers?Record<string, KyooSerializable>Serializable metadata to attach to the job.
id?stringOptional stable identifier; validation generates a UUID when omitted.
maxAttempts?numberMaximum permitted processing attempts; defaults to the safe integer limit.
payloadTApplication data to deliver to a worker.
persistent?booleanWhether the broker should retain this job durably. Defaults to true.
priority?KyooJobPriorityPriority from 1 through 255; defaults to 1.