Skip to content

Interface: KyooQueueWorkerOptions

Represents the options for the creation of a queue worker

Properties

PropertyTypeDescription
autoStartbooleanIf true, the worker will start automatically on creation
blockingbooleanIf true, the worker will process jobs one at a time. When false, the worker will process jobs as they become available. Remarks Use with care - this can lead to memory leaks if the processor function is resource intensive.
namestringThe name of the worker
noAckbooleanIf true, the job will be acknowledged automatically on retrieval Remarks When the worker is in non-blocking mode, noAck must be true This is to prevent memory leaks.