potiuk commented on issue #6023: [AIRFLOW-5417] Fix DB disconnects during webserver startup URL: https://github.com/apache/airflow/pull/6023#issuecomment-529183747 Very interesting one. I read a bit about scoped session in this context. Just a thought: Maybe a better solution (still temporary but a bit less invasive) will be to run init_views in a separate thread and join it later (if we need to join it at all). This way the session will not be removed from the thread_local scope and in case it is used later on it might be still used?
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
