【问题标题】:Is there documentation for Airflow log file return codes?是否有 Airflow 日志文件返回代码的文档?
【发布时间】:2019-12-03 21:30:12
【问题描述】:

我正在尝试确定 .log 文件中的哪些内容使特定任务在气流中标记为“成功”与“失败”。我感觉这取决于运营商(PythonOperator vs EmailOperator vs BashOperator 等)。

我看到了不同的返回码。例如,INFO - Task exited with return code 1INFO - Task exited with return code 0INFO - Process psutil.Process(pid=00000, status='terminated') (00000) terminated with exit code -15

我没有看到一致性..我首先认为INFO - Task exited with return code 0构成了成功,但我看到一些失败日志也有这个。

如果能深入了解不同的返回码#,我将不胜感激。

【问题讨论】:

    标签: airflow directed-acyclic-graphs return-code


    【解决方案1】:

    这些返回码似乎与 python 的退出码相同。 这些退出代码的含义在这个link中有更好的解释,但总而言之,代码0表示你的进程“没有错误”,1表示你的进程有一个或多个错误。

    【讨论】:

      猜你喜欢
      • 2020-01-04
      • 2011-01-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-11-09
      • 1970-01-01
      • 2023-03-25
      • 2019-09-14
      相关资源
      最近更新 更多