Optional
log?: booleanWether or not we should perform logging for this job
Optional
maxThe maximum number of times this job should fail, a job fails when the maxRetries is reached and the job still throws an error
Optional
maxThe maximum number of times this job should retry, a job retries when it throws an error
Optional
maxThe maximum number of times this job should run before being considered finished
Optional
onThe function to run when this job is failed, onFail is emitted when maxRetries is reached for a job
Optional
onThe function to run when this job is finished, onFinish is emitted when maxRuns is reached or once is true
Optional
onThe function to run when this job is paused
Optional
onThe function to run when this job is resumed
Optional
onThe function to run when this job is retried because an error was encountered
Optional
onThe function to run when this job is run
Optional
onThe function to run when this job is started
Optional
onThe function to run when this job is stopped, onStop is emitted when maxFails is reached
Optional
once?: booleanWhether or not this job should only run once
false
Optional
retryThe retry delay/timeout in milliseconds
The function to run
Optional
timeout?: numberThe start delay/timeout in milliseconds
Optional
timeoutThe pause delay/timeout in milliseconds - how long should we wait before checking if the job has resumed
The unique identifier for this job