Is there documentation for Airflow log file return codes?
Asked Answered
C

1

15

I am trying to identify what in a .log file makes a specific task marked as "Successful" vs "Failure" in airflow. I am getting the sense that this is dependent upon the operator (PythonOperator vs EmailOperator vs BashOperator etc.).

I am seeing different return codes. For example, INFO - Task exited with return code 1 or INFO - Task exited with return code 0 or INFO - Process psutil.Process(pid=00000, status='terminated') (00000) terminated with exit code -15

I am not seeing consistency.. I first thought INFO - Task exited with return code 0 constituted a success, but I see some failure logs also have this.

I would appreciate any insight into understanding different return code #.

Che answered 25/7, 2019 at 14:46 Comment(0)
C
5

It seems that these return codes are equal that exit codes from python. The meaning of these exit codes are better explained in this link, but in summary, code 0 means "no errors" in your process, and 1 means that your process has one or more errors.

Churchman answered 24/6, 2020 at 19:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.