kacpermuda commented on code in PR #65727:
URL: https://github.com/apache/airflow/pull/65727#discussion_r3160654219
##########
providers/openlineage/src/airflow/providers/openlineage/utils/utils.py:
##########
@@ -1733,6 +1844,33 @@ def should_use_external_connection(hook) -> bool:
return True
+def _get_providers_manager_instance():
+ """
+ Return the ProvidersManager instance to use for OpenLineage converter
lookup.
+
+ Picks the task-runtime-safe entry point on Airflow 3.2+ and falls back to
the legacy
+ ``airflow.providers_manager.ProvidersManager`` on 3.0 / 3.1 and 2.x.
Returns ``None``
+ if neither import is available (very old Airflow).
Review Comment:
Yeah, AI artifact, removed the extra try/except as 2.11 has the provider
manager for sure.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]