}
jobRecord.setState(State.CANCELED);
UpdateSpec updateSpec = new UpdateSpec(jobRecord.getRootJobKey());
updateSpec.getNonTransactionalGroup().includeJob(jobRecord);
if (jobRecord.isExceptionHandlerSpecified()) {
executeExceptionHandler(updateSpec, jobRecord, new CancellationException(), true);
}
backEnd.save(updateSpec, jobRecord.getQueueSettings());
}