Overview
JobOptions (also known as JobsOptions) provides configuration for individual jobs added to a queue.Interface
Properties
jobId
Override the job ID (must be unique)
delay
Delay in milliseconds before the job can be processed
priority
Priority from 0 (highest) to 2,097,152 (lowest)
attempts
Total number of attempts to try the job until it completes
backoff
Backoff setting for automatic retries if the job fails
lifo
If true, adds the job to the left of the queue (LIFO) instead of the right (FIFO)
removeOnComplete
If true, removes the job when it successfully completes
removeOnFail
If true, removes the job when it fails after all attempts
keepLogs
Maximum number of log entries to preserve
stackTraceLimit
Limits the number of stack trace lines recorded
sizeLimit
Limits the size in bytes of the job’s data payload (JSON serialized)
timestamp
Timestamp when the job was created
repeat
Repeat configuration for creating recurring jobs
parent
Parent job configuration for creating job dependencies
