The name of the Job
The payload for this job.
The options object for this job.
Optional
id: stringOptional
idMoves a job to the completed queue. Returned job to be used with Queue.prototype.nextJobFromJobData.
The jobs success message.
Worker token used to acquire completed job.
True when wanting to fetch the next job.
Returns the jobData of the next job in the waiting queue.
Moves a job to the failed queue.
the jobs error message.
token to check job is locked by current worker
true when wanting to fetch the next job
void
Sets a batch of jobs for this job.
Static
fromJSONInstantiates a Job from a JobJsonRaw object (coming from a deserialized JSON object)
the queue where the job belongs to.
the plain object containing the job.
Optional
jobId: stringan optional job id (overrides the id coming from the JSON object)
Static
fromInstantiates a JobPro instance based on a standard Job instance.
Generated using TypeDoc
See
Job