Event handler for the done event, emitted when a job has ended, either due to completion or failure.
done
The type of the job
The unique identifier of the job
The result of the job
Optional
The error of the job, if any
Event handler for the
done
event, emitted when a job has ended, either due to completion or failure.