You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/02/25 21:58:04 UTC
[GitHub] [airflow] nuclearpinguin commented on issue #6938: [AIRFLOW-6382]
Extract provide/create session to session module
nuclearpinguin commented on issue #6938: [AIRFLOW-6382] Extract provide/create session to session module
URL: https://github.com/apache/airflow/pull/6938#issuecomment-591091208
>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:
users@infra.apache.org
With regards,
Apache Git Services