I don't think there is really a way of knowing when the worker actually cancels the task. The handler is not a general cancel handler. It is only specific to sync and publish cancellation.