You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/02/09 10:43:04 UTC

[GitHub] [airflow] JPonte commented on a change in pull request #14146: Restore base lineage backend

JPonte commented on a change in pull request #14146:
URL: https://github.com/apache/airflow/pull/14146#discussion_r572776463



##########
File path: airflow/lineage/__init__.py
##########
@@ -45,6 +48,20 @@ class Metadata:
     data: Dict = attr.ib()
 
 
+def _get_backend() -> Optional[LineageBackend]:
+    _backend: Optional[LineageBackend] = None
+
+    try:
+        _backend_str = conf.get("lineage", "backend")
+        _backend = import_string(_backend_str)  # pylint:disable=protected-access
+    except ImportError as err:
+        log.debug("Cannot import %s due to %s", _backend_str, err)  # pylint:disable=protected-access
+    except AirflowConfigException:
+        log.debug("Could not find lineage backend key in config")

Review comment:
       By default there is no backend, lineage stays only in the XComs.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org