'Returns the latest date for which at least one dag run exists'

@property
def latest_execution_date(self):

    session = settings.Session()
    execution_date = session.query(func.max(DagRun.execution_date)).filter((DagRun.dag_id == self.dag_id)).scalar()
    session.commit()
    session.close()
    return execution_date
