The name of the Job
The payload for this job.
The options object for this job.
Optionalid: stringPrepares a job to be passed to Sandbox.
Extend the lock for this job.
unique token for the lock
lock duration in milliseconds
Returns the batch of jobs for this job if any.
Logs one row of log data.
string with log data to be logged.
The total number of log entries for this job so far.
Moves 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
Set job as failed. This method will set the current job instance as failed, it is useful when processing batches to mark a certain job in a batch as failed while completing the rest.
The error object to be associated with the job.
Sets a batch of jobs for this job.
StaticaddaddJobLog
A minimal queue instance
Job id
String with a row of log data to be logged
OptionalkeepLogs: number
The optional amount of log entries to preserve
The total number of log entries for this job so far.
StaticfromInstantiates a JobPro instance based on a standard Job instance.
StaticfromInstantiates 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.
OptionaljobId: string
an optional job id (overrides the id coming from the JSON object)
See
Job