We have long running jobs that we offer the user the possibility of cancellation. Upon clicking “Cancel”, we call BackgroundJob.Delete(jobId)
. Sometimes, the cancellation can take some moments to clean up so we would like to display a visual indication that the job is being cancelled.
Thus my question. Is there a way of finding out that a job is being cancelled?