Documents / @faasjs/jobs / JobWorkerOptions
Type Alias: JobWorkerOptions
JobWorkerOptions =
LoadJobRegistryOptions&object
Options for startJobWorker.
Type Declaration
concurrency?
optionalconcurrency?:number
Number of jobs to claim per poll tick. Defaults to 1.
leaseSeconds?
optionalleaseSeconds?:number
Lease duration in seconds before a claimed job can be re-claimed. Defaults to 60.
pollInterval?
optionalpollInterval?:number
Milliseconds between poll ticks. Defaults to 1000.
queue?
optionalqueue?:string
Queue name to poll. Defaults to 'default'.
workerId?
optionalworkerId?:string
Unique identifier for this worker instance. Auto-generated when omitted.