Optional
byJobProcessor:
boolean
Readonly
agenda
Readonly
attrs
internal variable to ensure a job does not set unlimited numbers of setTimeouts if the job is not processed immediately
Optional
error:
string
|
Error
Prevents the job from running
Allows job to run
Fails the job with a reason (error) specified
if set, a job is forked via node child process and runs in a seperate/own thread
A job is running if: (lastRunAt exists AND lastFinishedAt does not exist) OR (lastRunAt exists AND lastFinishedAt exists but the lastRunAt is newer [in time] than lastFinishedAt)
Whether or not job is running at the moment (true for running)
Sets priority of the job
priority of when job should be queued
Remove the job from database
Sets a job to repeat at a specific time
Saves a job to database
Schedules a job to run at specified time
Given a job, turn it into an JobParameters object
Updates "lockedAt" time so the job does not get picked up again
Optional
progress:
number
0 to 100
Data to ensure is unique for job to be created
Optional
opts:
{
insertOnly:
boolean
}
creates a new job object