milton0825 commented on a change in pull request #5349: [AIRFLOW-4591] Make 
default_pool a real pool
URL: https://github.com/apache/airflow/pull/5349#discussion_r293679690
 
 

 ##########
 File path: airflow/utils/db.py
 ##########
 @@ -78,6 +78,19 @@ def merge_conn(conn, session=None):
         session.commit()
 
 
+@provide_session
+def add_default_pool_if_not_exists(session=None):
+    from airflow.models.pool import Pool
+    if not Pool.get_pool(Pool.DEFAULT_POOL_NAME, session=session):
+        default_pool = Pool(
+            pool=Pool.DEFAULT_POOL_NAME,
+            slots=128,
 
 Review comment:
   Good idea.

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