Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def _executor_initializer():
Reconfigures the ORM engine to prevent issues that arise when multiple processes interact with
the Airflow database.
"""
settings.configure_orm()
if not AIRFLOW_V_3_0_PLUS:
settings.configure_orm()


class OpenLineageListener:
Expand Down Expand Up @@ -481,7 +482,8 @@ def _fork_execute(self, callable, callable_name: str):
self.log.debug("Process with pid %s finished - parent", pid)
else:
setproctitle(getproctitle() + " - OpenLineage - " + callable_name)
configure_orm(disable_connection_pool=True)
if not AIRFLOW_V_3_0_PLUS:
configure_orm(disable_connection_pool=True)
self.log.debug("Executing OpenLineage process - %s - pid %s", callable_name, os.getpid())
callable()
self.log.debug("Process with current pid finishes after %s", callable_name)
Expand Down