Skip to content

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 ParameterDefault type
TKyooSerializable

Properties ​

PropertyTypeDescription
expirationnull | DateTime<boolean>Absolute expiration instant, or null when the job has no expiry.
headersRecord<string, KyooSerializable>Serializable metadata attached to the job.
idstringStable identifier used to track this job across broker operations.
maxAttemptsnumberMaximum permitted processing attempts.
payloadTApplication data delivered to the worker.
persistentbooleanWhether the broker should retain this job durably.
priorityKyooJobPriorityBroker-independent priority from 1 through 255.