presto-main/src/main/java/io/prestosql/execution/SqlTaskManager.java/SqlTaskManager/cancelTask
class SqlTaskManager:    @Override
    public TaskInfo cancelTask(TaskId taskId)
    {
        requireNonNull(taskId, "taskId is null");

        return tasks.getUnchecked(taskId).cancel();
    }