code: @Override
    public boolean isFlowRunning(final int projectId, final String flowId) {
      boolean isRunning = false;
      isRunning =
          isRunning
              || isFlowRunningHelper(projectId, flowId, this.queuedFlows.getAllEntries());
      isRunning =
          isRunning
              || isFlowRunningHelper(projectId, flowId, this.runningExecutions.get().values());
      return isRunning;
    }
docs: Checks whether the given flow has an active (running, non-dispatched) executions {@inheritDoc}
  
  @see azkaban.executor.ExecutorManagerAdapter#isFlowRunning(int, java.lang.String)