presto-main/src/main/java/io/prestosql/operator/WorkProcessorUtils.java/ProcessWorkProcessor/isFinished
class ProcessWorkProcessor:        @Override
        public boolean isFinished()
        {
            return state != null && state.getType() == ProcessState.Type.FINISHED;
        }