public int wakeWaitingProcedures(ProcedureScheduler procedureScheduler) {
    int count = deque.size();
    while (!deque.isEmpty()) {
      procedureScheduler.addFront(deque.pollFirst());
    }
    return count;
  }
Lock Queue for procedure of the same type
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/procedure/scheduler/LockQueue.java