Optional
functions: ThreadJobDataFunctionsReadonly
completedA subject that contains whether or not the job was completed.
Optional
errorThe error that the job failed with.
Readonly
idA unique identifier of the job. This differs from the threadId, which is created by the os and set when the thread actually starts..
Optional
onWhat should happen when the thread job was cancelled.
Optional
onWhat should happen when the thread job completes.
Optional
onWhat should happen when an error occurs inside the thread job.
Optional
onWhat should happen when a message is received from the thread job.
Wether or not the job should use priority workers.
The progress of the job in a percentage.
Readonly
queuedTimestamp of when the job was queued in milliseconds.
Optional
resultThe result that the job finished with.
Optional
startedTimestamp of when the job was started in milliseconds.
The status of the job.
Optional
stoppedTimestamp of when the job was stopped in milliseconds.
Optional
threadThe id of the thread that the job is running in. Set by the os.
The timeout after which the job should exit with an error.
Readonly
typeThe type of the job. (whether it's a real job with db persistence or just a simple function call).
Readonly
workerData that should be passed to the worker.
A thread job.