You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/02/26 19:15:25 UTC

[GitHub] [airflow] ashb commented on a change in pull request #7552: [AIRFLOW-5354] Reduce scheduler CPU usage from 100%

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:
users@infra.apache.org


With regards,
Apache Git Services