简体   繁体   English

即使由于 dagbag 错误而从 UI 手动触发 Airflow 也不会触发 dag

[英]Airflow is not triggering dags even after they have been manually triggered from the UI due to dagbag errors

Airflow is loading all the dags into the db but is not triggering them. Airflow 正在将所有 dag 加载到数据库中,但没有触发它们。

The log files are showing the following errors日志文件显示以下错误

[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 

Closing this question.结束这个问题。 The log file errors remain however the dags are now getting triggered successfully.日志文件错误仍然存​​在,但 dag 现在已成功触发。 The problem was the dags needed to be made active(switched on) and not simply triggered to run问题是需要使 dags 处于活动状态(打开)而不是简单地触发运行

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM