kacpermuda commented on code in PR #69283:
URL: https://github.com/apache/airflow/pull/69283#discussion_r3519132737
##########
providers/openlineage/src/airflow/providers/openlineage/plugins/listener.py:
##########
@@ -113,15 +113,47 @@ def _executor_initializer():
log.debug("Exception details:", exc_info=True)
-def _emit_manual_state_change_event(adapter_method, stats_key, **kwargs):
+_process_adapter: OpenLineageAdapter | None = None
+
+
+def _get_process_adapter() -> OpenLineageAdapter:
Review Comment:
Should we just use `@cache` decorator as we do on line 1128 now for
`get_openlineage_listener()`, instead of global variable? We used global var
for listener as well before, then migrated to cached.
--
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]