presto-main/src/main/java/io/prestosql/execution/SqlStageExecution.java/SqlStageExecution/updateFinalTaskInfo
class SqlStageExecution:    private synchronized void updateFinalTaskInfo(TaskInfo finalTaskInfo)
    {
        tasksWithFinalInfo.add(finalTaskInfo.getTaskStatus().getTaskId());
        checkAllTaskFinal();
    }