I'm reaching the RAM memory limit on my Heroku Dyno (hobby) currently while running Celery tasks with RabbitMQ in a Django app.
I'm played around with the Celery settings a little bit but I keep hitting the memory limit, and I'm missing the technical knowledge on memory optimization. I'm wondering if there is anything I can do with my current settings to prevent reaching the limit or is the only solution here to upgrade the Heroku Dyno?
BROKER_URL = 'amqp://url'
BROKER_POOL_LIMIT = 5
CELERY_RESULT_BACKEND = None
CELERY_MAX_TASKS_PER_CHILD = 10
CELERY_MAX_MEMORY_PER_CHILD = 80000
Procfile:web: gunicorn app_name.wsgi worker: celery -A app_name worker -l info --without-heartbeat
Task.py file:@shared_task(acks_late=True, ignore_result=True)
def function_name(args):