"""
        Update any import warnings to be displayed in the UI.
        For the DAGs in the given DagBag, record any associated configuration warnings and clear
        warnings for files that no longer have them. These are usually displayed through the
        Airflow UI so that users know that there are issues parsing DAGs.
        :param session: session for ORM operations
        :param dagbag: DagBag containing DAGs with configuration warnings
        """
        self._validate_task_pools(dagbag=dagbag)
        stored_warnings = set(
            session.query(DagWarning).filter(DagWarning.dag_id.in_(dagbag.dags.keys())).all()
        )
        for warning_to_delete in stored_warnings - self.dag_warnings:
            session.delete(warning_to_delete)
        for warning_to_add in self.dag_warnings:
            session.merge(warning_to_add)
        session.commit()
    @provide_session
    def execute_callbacks(