potiuk commented on a change in pull request #20443:
URL: https://github.com/apache/airflow/pull/20443#discussion_r773694853



##########
File path: airflow/utils/orm_event_handlers.py
##########
@@ -86,3 +86,7 @@ def after_cursor_execute(conn, cursor, statement, parameters, 
context, executema
                 stack_info,
                 statement.replace("\n", " "),
             )
+
+    if conf.getboolean('core', 'execute_listeners_on_scheduler', 
fallback=False):
+        # On import, register sqlalchemy event handlers which call 
airflow.listeners
+        import airflow.listeners.events  # noqa

Review comment:
       I definitely agree with @uranusjr . We already have some of those in 
Airflow and side effects have bitten us more than once. 




-- 
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]


Reply via email to