If I understand correctly, this generates a notification only when a job exceeds max. permissible retries or it hard times-out. If so, it means the cancelled jobs would probably never trigger a notification because they wont be retried again. So, we may need to generate notification for cancelled jobs without having to look at retries and hard timeout.