2๐
I am almost certain you are running this setup with DEBUG=True wich leads to a memory leak.
Check this post: Disable Django Debugging for Celery.
Iโll post my configuration in case it helps.
settings.py
djcelery.setup_loader()
BROKER_HOST = "localhost"
BROKER_PORT = 5672
BROKER_VHOST = "rabbit"
BROKER_USER = "YYYYYY"
BROKER_PASSWORD = "XXXXXXX"
CELERY_IGNORE_RESULT = True
CELERY_DISABLE_RATE_LIMITS = True
CELERY_ACKS_LATE = True
CELERYD_PREFETCH_MULTIPLIER = 1
CELERYBEAT_SCHEDULER = "djcelery.schedulers.DatabaseScheduler"
CELERY_ROUTES = ('FILE_WITH_ROUTES',)
๐คHassek
1๐
You might be hitting this issue in librabbitmq
. Please check whether or not Celery is using librabbitmq>=1.0.1
.
A simple fix to try is: pip install librabbitmq>=1.0.1
.
๐คdnozay
- Django-paypal setup
- Django custom user model in admin, relation "auth_user" does not exist
- What is the proper way of testing throttling in DRF?
- Add a field error in Django Rest Framework validate method?
Source:stackexchange.com