ashb commented on a change in pull request #7552: [AIRFLOW-5354] Reduce 
scheduler CPU usage from 100%
URL: https://github.com/apache/airflow/pull/7552#discussion_r384706119
 
 

 ##########
 File path: airflow/utils/dag_processing.py
 ##########
 @@ -426,7 +426,7 @@ def harvest_simple_dags(self):
         :return: List of parsing result in SimpleDag format.
         """
         # Receive any pending messages before checking if the process has 
exited.
-        while self._parent_signal_conn.poll():
+        while self._parent_signal_conn.poll(timeout=0.01):
 
 Review comment:
   Yes, which says check but don't wait. (None is wait forever)

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

Reply via email to