presto-main/src/main/java/io/prestosql/execution/TaskStateMachine.java/TaskStateMachine/cancel
class TaskStateMachine:    public void cancel()
    {
        transitionToDoneState(TaskState.CANCELED);
    }