2017-12-18 203 views
0

我已经创建了示例DAG,其中我具有DAG配置,如下所示。在气流中运行DAG时的“处理信号:ttou”消息

default_args = { 
    'owner': 'airflow',   
    'depends_on_past': False, 
    'start_date': one_min_ago, 
    'email': ['[email protected]'], 
    'email_on_failure': True, 
    'email_on_retry': True, 
    'retries': 5, 
    'retry_delay': timedelta(hours=30)) 

有了这个当我运行airflow webserver时,我得到了下面的消息。

/home/af_user/anaconda/lib/python3.5/site-packages/flask/exthook.py:71: 
ExtDeprecationWarning: Importing flask.ext.cache is deprecated, use 
flask_cache instead. 
.format(x=modname), ExtDeprecationWarning 
[2017-12-18 12:41:27,967] [17328] {models.py:167} INFO - Filling up the 
DagBag from /home/af_user/airflow/dags 
[2017-12-18 12:41:28 +0000] [16648] [INFO] Handling signal: ttou 
[2017-12-18 12:41:57 +0000] [16655] [INFO] Worker exiting (pid: 16655) 

而且DAG将只在运行状态。

让我知道是否有人曾经遇到过这个问题,并已经修复它。

回答

1

这些消息是预期的。 ttou(和ttin)信号用于刷新网络服务器的gunicorn工作人员,以便它接收DAG更改。您可以使用worker_refresh_intervalworker_refresh_batch_size气流配置值修改或禁用此行为。