Interface: KyooJobToEnqueue<T>
Describes the shape of a job which should be enqueued.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
Properties
| Property | Type | Description |
|---|---|---|
expiration? | DateTime<boolean> | Absolute Luxon expiration instant. |
headers? | Record<string, KyooSerializable> | Serializable metadata to attach to the job. |
id? | string | Optional stable identifier; validation generates a UUID when omitted. |
maxAttempts? | number | Maximum permitted processing attempts; defaults to the safe integer limit. |
payload | T | Application data to deliver to a worker. |
persistent? | boolean | Whether the broker should retain this job durably. Defaults to true. |
priority? | KyooJobPriority | Priority from 1 through 255; defaults to 1. |
