code: public synchronized int submitCommand(final String command) {
      final Integer id = scheduler.assignTaskId();
      scheduler.addTask(new TaskEntity(id, command));
  
      if (state == State.READY) {
        notify(); // Wake up at {waitForCommands}
      } else if (state == State.RUNNING && nMaxEval > nActiveEval + nRequestedEval) {
        requestEvaluator(1);
      }
      return id;
    }
docs: Submit a command to schedule.