I have a django application running that uses celery to run tasks. The tasks take between 8 and 10 hours to complete. In my local system, the application was running fine. I have a mid 2015 Macbook pro with an i7 processor and 16 gigs of RAM.
I recently deployed the application into a 2core 4GB server in AWS. Now the tasks are being killed. This is the exact error I get
Task handler raised error: WorkerLostError('Worker exited prematurely: signal 9 (SIGKILL) Job: 0.')
When I read on this, I came to know that this happens due to memory leakage or memory swap issues.
My question is, will increasing the memory in AWS solve the issue?