“Handling signal: ttou” message while running DAG in airflow

前端 未结 2 528
故里飘歌
故里飘歌 2021-02-07 10:43

I have created sample DAG, where I had DAG config as below.

default_args = {
    \'owner\': \'airflow\',         
    \'depends_on_past\': False, 
    \'start_da         


        
相关标签:
2条回答
  • 2021-02-07 11:06

    Those messages are expected. The ttou (and ttin) signals are used to refresh gunicorn workers of the webserver so that it picks up DAG changes. You can modify or disable this behavior with the worker_refresh_interval and worker_refresh_batch_size airflow config values.

    0 讨论(0)
  • 2021-02-07 11:12

    I don't really want to change worker_refresh_interval or worker_refresh_batch_size without a good reason. An alternative is to set an environment variable:

    GUNICORN_CMD_ARGS="--log-level WARNING"
    

    If setting this in a docker-compose.yml file, the following is tested with apache-airflow==1.10.6 with gunicorn==19.9.0:

    environment:
        - 'GUNICORN_CMD_ARGS=--log-level WARNING'
    

    If setting this in a Dockerfile, the following is tested with apache-airflow==1.10.6 with gunicorn==19.9.0:

    ENV GUNICORN_CMD_ARGS --log-level WARNING
    

    Credit: answer by amoskaliov

    0 讨论(0)
提交回复
热议问题