return prune_dict({"dag_id": self.dag_id, "run_type": self.run_type})
    @property
    def logical_date(self) -> datetime:
        return self.execution_date
    def get_state(self):
        return self._state
    def set_state(self, state: DagRunState):
        if state not in State.dag_states:
            raise ValueError(f"invalid DagRun state: {state}")
        if self._state != state:
            self._state = state
            self.end_date = timezone.utcnow() if self._state in State.finished else None
            if state == State.QUEUED:
                self.queued_at = timezone.utcnow()
    @declared_attr
    def state(self):
        return synonym("_state", descriptor=property(self.get_state, self.set_state))
    @provide_session
    def refresh_from_db(self, session: Session = NEW_SESSION) -> None: