ashb commented on code in PR #44187:
URL: https://github.com/apache/airflow/pull/44187#discussion_r1848638957


##########
airflow/settings.py:
##########
@@ -516,6 +522,7 @@ def _session_maker(_engine):
             )
 
     Session = scoped_session(_session_maker(engine))
+    NonScopedSession = _session_maker(engine)

Review Comment:
   I think actually all I want is the Session global to reuse this session 
maker object - so that we have just one `_session_maker()` "in scope". Does it 
work if you do this
   ```suggestion
   NonScopedSession = _session_maker(engine)
        Session = scoped_session(NonScopedSession)
       
   ```
   



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