Overview
The Repeat class manages repeatable jobs that execute at specified intervals using cron patterns or fixed delays.Access via
queue.repeat property. For new implementations, use queue.jobScheduler instead.Constructor
Methods
updateRepeatableJob
Updates or creates a repeatable job.getRepeatableJobs
Gets all repeatable jobs.number
default:"0"
Offset of first job to return
number
default:"-1"
Offset of last job to return
boolean
default:"false"
Return in ascending order by next execution time
removeRepeatable
Removes a repeatable job.string
required
Job name
RepeatOptions
required
Repeat options (must match the ones used when creating)
string
Optional job ID
removeRepeatableByKey
Removes a repeatable job by its key.string
required
The repeatable job key (obtained from getRepeatableJobs)
