}
}
if (async) {
// We do all the checks above before bothering to enqueue a task.
// They will have to be done again when the task is processed.
DeletePipelineTask task = new DeletePipelineTask(rootJobKey, force, new QueueSettings());
taskQueue.enqueue(task);
return;
}
deleteAll(JobRecord.DATA_STORE_KIND, rootJobKey);
deleteAll(Slot.DATA_STORE_KIND, rootJobKey);