presto-main/src/main/java/io/prestosql/execution/StageStateMachine.java/StageStateMachine/transitionToSchedulingSplits
class StageStateMachine:    public synchronized boolean transitionToSchedulingSplits()
    {
        return stageState.setIf(SCHEDULING_SPLITS, currentState -> currentState == PLANNED || currentState == SCHEDULING);
    }