gpt4 book ai didi

python - 即使由于 dagbag 错误而从 UI 手动触发了 dags,Airflow 也不会触发 dags

转载 作者:太空宇宙 更新时间:2023-11-03 19:54:59 28 4
gpt4 key购买 nike

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

日志文件显示以下错误

[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

最佳答案

结束这个问题。日志文件错误仍然存​​在,但 dags 现在已成功触发。问题是 dags 需要被激活(打开),而不是简单地触发运行

关于python - 即使由于 dagbag 错误而从 UI 手动触发了 dags,Airflow 也不会触发 dags,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59596692/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com