presto-main/src/main/java/io/prestosql/execution/TaskInfo.java/TaskInfo/withTaskStatus
class TaskInfo:    public TaskInfo withTaskStatus(TaskStatus newTaskStatus)
    {
        return new TaskInfo(newTaskStatus, lastHeartbeat, outputBuffers, noMoreSplits, stats, needsPlan);
    }