"""
        Returns a list of dag run execution dates currently running.
        :return: List of execution dates
        """
        runs = DagRun.find(dag_id=self.dag_id, state=State.RUNNING)
        active_dates = []
        for run in runs:
            active_dates.append(run.execution_date)
        return active_dates
    @provide_session
    def get_num_active_runs(self, external_trigger=None, only_running=True, session=NEW_SESSION):
        """
        Returns the number of active "running" dag runs.
        :param external_trigger: True for externally triggered active dag runs
        :param session:
        :return: number greater than 0 for active dag runs
        """
        
        query = session.query(func.count()).filter(DagRun.dag_id == self.dag_id)
        if only_running:
            query = query.filter(DagRun.state == State.RUNNING)
        else:
            query = query.filter(DagRun.state.in_({State.RUNNING, State.QUEUED}))
        if external_trigger is not None:
            query = query.filter(
                DagRun.external_trigger == (expression.true() if external_trigger else expression.false())
            )
        return query.scalar()
    @provide_session
    def get_dagrun(