[ https://issues.apache.org/jira/browse/AIRFLOW-2733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16537874#comment-16537874 ]
Taylor Edmiston commented on AIRFLOW-2733: ------------------------------------------ Do you know if this bug affects all versions of Python or only some (e.g., perhaps the missing method called was added in a later version)? > Airflow webserver crashes with refresh interval <= 0 in daemon mode > ------------------------------------------------------------------- > > Key: AIRFLOW-2733 > URL: https://issues.apache.org/jira/browse/AIRFLOW-2733 > Project: Apache Airflow > Issue Type: Bug > Reporter: George Leslie-Waksman > Priority: Major > > In airflow/bin/cli.py calls to mointor_gunicorn sub-function > ([https://github.com/apache/incubator-airflow/blob/master/airflow/bin/cli.py#L841)] > are made using a mix of psutil.Process objects and subprocess.Popen objects. > > Case 1: > [https://github.com/apache/incubator-airflow/blob/master/airflow/bin/cli.py#L878] > Case 2: > [https://github.com/apache/incubator-airflow/blob/master/airflow/bin/cli.py#L884] > > In the event worker_refresh_interval is <=0 and we are in daemon mode, we end > up calling a non-existent `poll` function on a psutil.Process object: > https://github.com/apache/incubator-airflow/blob/master/airflow/bin/cli.py#L847 -- This message was sent by Atlassian JIRA (v7.6.3#76005)