My Celery Task Manager is out of memory 512 mb

I keep getting this error for my web app remotetechjob.co. I probably have some kind of memory leak in my code, but wondering what the parameters are for calculating memory in a Celery Task Manager?

Edit: I deleted my original and spun up a new bbackground service and within 2 min it had run out of memory and the service failed, even when the metrics didn’t show this…

Googled for the same problem in Heroku and someone said that changing the start command to include a concurrency flag fixed it:

celery -A config.celery_app worker -l info

to

celery -A config.celery_app worker -l info --concurrency 2
2 Likes

thanks for sharing. this fixed my problem too!

1 Like