lyso commented on code in PR #29602:
URL: https://github.com/apache/airflow/pull/29602#discussion_r1125976622


##########
airflow/config_templates/default_airflow.cfg:
##########
@@ -1120,11 +1120,12 @@ catchup_by_default = True
 ignore_first_depends_on_past_by_default = True
 
 # This changes the batch size of queries in the scheduling main loop.
+# This should not be greater than ``core.parallelism``.
 # If this is too high, SQL query performance may be impacted by
 # complexity of query predicate, and/or excessive locking.
 # Additionally, you may hit the maximum allowable query length for your db.
-# Set this to 0 for no limit (not advised)
-max_tis_per_query = 512
+# Setting this to 0 for using the value of ``core.parallelism``
+max_tis_per_query = 16

Review Comment:
   Thanks @Taragolis for your suggestion. 
   
   I have added a function `_validate_max_tis_per_query` to configuration.py 
for this change request. A warning message will be display at when first import 
configuration module.
   
   Should I click the "Resolve conversition" button below?



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to