Job type, used as selector for strategies in job processors
Job payload
Custom headers, used to pass specific information for job processors
Custom options, used to pass specific information for job processors
Create a new instance of JobHandler
job request object
Create a new instance of JobHandler
User job request identifier, defined by the user
Job payload
Optional
type: TypeJob type, used as selector for strategies in job processors
Optional
options: Options<CustomHeaders, CustomOptions>JobHandler options
Readonly
createdDate object with the timestamp when the job was created
Readonly
jobUser job request identifier, defined by the user
Readonly
jobUnique user job request identification, based on jobUserId
Optional
Readonly
optionsJob meta information, used to pass specific information for job processors
Readonly
typeJob type, used as selector for strategies in job processors
Readonly
uuidUnique job processing identification
True if the job task raised any error
Return the process time in msec
Register an event listener over the done
event, which is emitted when a job has ended, either
due to completion or failure.
done
event
The listener function to add
Removes the specified listener from the listener array for the done
event.
done
event
The listener function to remove
Register an event listener over the done
event, which is emitted when a job has ended, either
due to completion or failure.
done
event
The listener function to add
Registers a one-time event listener over the done
event, which is emitted when a job has
ended, either due to completion or failure.
done
event
The listener function to add
Registers a event listener over the done
event, at the beginning of the listeners array,
which is emitted when a job has ended, either due to completion or failure.
done
event
The listener function to add
Registers a one-time event listener over the done
event, at the beginning of the listeners
array, which is emitted when a job has ended, either due to completion or failure.
done
event
The listener function to add
Removes the specified listener from the listener array for the done
event.
done
event
The listener function to remove
Return an object with the key information of the job, this information is used by the plugs
JobHandler class