You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Ash Berlin-Taylor (JIRA)" <ji...@apache.org> on 2018/01/25 09:41:00 UTC
[jira] [Commented] (AIRFLOW-2027) Remove unnecessary 1s sleep in
scheduler loop
[ https://issues.apache.org/jira/browse/AIRFLOW-2027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16338996#comment-16338996 ]
Ash Berlin-Taylor commented on AIRFLOW-2027:
--------------------------------------------
Would removing this sleep not also significantly increase the CPU load of the scheduler by putting it in a busy loop?
> Remove unnecessary 1s sleep in scheduler loop
> ---------------------------------------------
>
> Key: AIRFLOW-2027
> URL: https://issues.apache.org/jira/browse/AIRFLOW-2027
> Project: Apache Airflow
> Issue Type: Improvement
> Components: scheduler
> Reporter: Dan Davydov
> Assignee: Dan Davydov
> Priority: Major
>
> The scheduler loop sleeps for 1 second every loop unnecessarily. Remove this sleep to slightly speed up scheduling. It can add up since it runs to every scheduler loop which runs # of dags to parse/scheduler parallelism times.
>
> Also remove the unnecessary increased file processing interval in tests which slows them down.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)