feng-tao commented on a change in pull request #3796: [AIRFLOW-2824] - Add
config to disable default conn creation
URL: https://github.com/apache/incubator-airflow/pull/3796#discussion_r212450745
##########
File path: airflow/utils/db.py
##########
@@ -286,6 +284,16 @@ def initdb(rbac=False):
conn_id='cassandra_default', conn_type='cassandra',
host='cassandra', port=9042))
+
+def initdb(rbac=False):
+ session = settings.Session()
+
+ from airflow import models
Review comment:
is there a reason we put `airflow import models` as local import not global
import?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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