即使由于dagbag错误从UI手动触发了气流,气流也不会触发dags

时间:2020-01-05 03:10:11

标签: python airflow

Airflow正在将所有dag加载到数据库中,但没有触发它们。

日志文件显示以下错误

[2020-01-05 02:55:06,226] {{dagbag.py:436}}   
[2020-01-05 02:55:02,610] {{dagbag.py:403}}
INFO - Filling up the DagBag   
from /usr/local/airflow/dags [2020-01-05 02:55:06,226] {{dagbag.py:436}}  
ERROR - [Errno 22] Invalid argument Traceback (most recent call last):   File"/usr/local/airflow/.local/lib/python3.6/sitepackages/airflow/models/dagbag.py", 
line 420, in collect_dags safe_mode=safe_mode) 
File "/usr/local/airflow/.local/lib/python3.6/site- 
packages/airflow/models/dagbag.py", line 251, in  
process_file zip_file = zipfile.ZipFile(filepath) 
File  "/usr/local/lib/python3.6/zipfile.py", line 1131,   in init 
self
_RealGetContents() File "/usr/local/lib/python3.6/zipfile.py",  line 
1216 in _RealGetContents fp.seek(self.start_dir, 0 
OSError: [Errno 22] Invalid argument 

1 个答案:

答案 0 :(得分:0)

结束这个问题。日志文件错误仍然存​​在,但是现在已经成功触发了dag。问题是必须使das处于活动状态(打开),而不仅仅是触发运行