A cleanup function is a callback invoked when a job is ended or restarted. It receives a result that indicates whether the job ended itself with a return value or error, or was canceled/restarted by its creator.
A cleanup function is a callback invoked when a job is ended or restarted. It receives a result that indicates whether the job ended itself with a return value or error, or was canceled/restarted by its creator.