Josh
Josh

Reputation: 183

Is there documentation for Airflow log file return codes?

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 #.

Upvotes: 15

Views: 13707

Answers (1)

Leonardo Gasparini
Leonardo Gasparini

Reputation: 109

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.

Upvotes: 5

Related Questions