# How to identify jobs that are being cancelled?

**URL:** <https://discuss.hangfire.io/t/how-to-identify-jobs-that-are-being-cancelled/1006>\
**Category:** question\
**Created:** [May 25, 2015, 9:34am UTC](https://discuss.hangfire.io/t/how-to-identify-jobs-that-are-being-cancelled/1006 "2015-05-25T09:34:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dradovic](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.hangfire.io/dradovic/32/208_2.png) [@dradovic](https://discuss.hangfire.io/u/dradovic)\
**Post date:** [May 25, 2015, 9:34am UTC](https://discuss.hangfire.io/t/how-to-identify-jobs-that-are-being-cancelled/1006/1 "2015-05-25T09:34:50Z")

</div>

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?
