ashb edited a comment on issue #6938: [AIRFLOW-6382] Extract provide/create 
session to session module
URL: https://github.com/apache/airflow/pull/6938#issuecomment-591081255
 
 
   > And how did this reduce cyclic imports when utils.db imports the new file 
still?!
   
   That is not a problem. The main reason is that db.py imports all models, and 
plenty of models methods uses `provide_session` decorator. 
   
   So every model imported db.provide_session. And db.py imported every model.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to