public boolean isLeaderReady() {
    return regionListener.isLeaderReady();
  }
Check if the leader is ready to allow pipe operations.

@return true if the leader is ready to allow pipe operations
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/pipe/agent/runtime/PipeConfigNodeRuntimeAgent.java