turbaszek commented on a change in pull request #14146:
URL: https://github.com/apache/airflow/pull/14146#discussion_r576131280
##########
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
Review comment:
Should we add check that the backend is a sub class of `LineageBackend`
as we do in `XComBackend`? Currently there's no common methods but in future
this may help us with catching errors. WDYT?
----------------------------------------------------------------
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:
[email protected]