Interface: KyooJob<T>
A job is a unit of work that can be processed by a worker. It contains a payload and optional metadata.
Type Parameters
| Type Parameter | Default type |
|---|---|
T | KyooSerializable |
Properties
| Property | Type | Description |
|---|---|---|
expiration | null | DateTime<boolean> | Absolute expiration instant, or null when the job has no expiry. |
headers | Record<string, KyooSerializable> | Serializable metadata attached to the job. |
id | string | Stable identifier used to track this job across broker operations. |
maxAttempts | number | Maximum permitted processing attempts. |
payload | T | Application data delivered to the worker. |
persistent | boolean | Whether the broker should retain this job durably. |
priority | KyooJobPriority | Broker-independent priority from 1 through 255. |
