presto-main/src/main/java/io/prestosql/execution/SqlStageExecution.java/SqlStageExecution/cancel
class SqlStageExecution:    public synchronized void cancel()
    {
        stateMachine.transitionToCanceled();
        getAllTasks().forEach(RemoteTask::cancel);
    }