airflow icon indicating copy to clipboard operation
airflow copied to clipboard

Task failed because of Command exited with return code -9 due to RAM

Open JavierLopezT opened this issue 6 years ago • 3 comments

As far as I understand, the apparition of return code -9 when a task fails, is because the error is unknown. However, I have faced two situations when it was because of a lack of RAM (in my docker image): -MongoToS3Operator. I solved it modifying the operator and allowing to write on disk -Retrieving a dataframe with the dbapi hook, due to the size of the dataframe

I have no clue if it is possible to identify when a problem has been because lacking of RAM, but if it is possible, maybe it would be nice to have a new code that specifies it

JavierLopezT avatar Jul 04 '20 18:07 JavierLopezT

From what we have seen, a -9 code indicates that it is an OOM issue. We have not seen a -9 occur in any other circumstances. It seems like for python, a -9 indicates a memory issue (relevant stackoverflow link)

madison-ookla avatar Jul 06 '20 20:07 madison-ookla

@JavierLopezT is this issue diffrenat than https://github.com/apache/airflow/issues/14270 which was already resolved?

eladkal avatar May 06 '21 12:05 eladkal

@JavierLopezT is this issue diffrenat than #14270 which was already resolved?

No. Sorry, I didn't realize I had already opened this one.

JavierLopezT avatar May 06 '21 12:05 JavierLopezT