1π
β
I am studying celery too and started two days ago. My experience is that, you need to independently deploy your celery well before you integrate it into your web application.
After the visit to the celery doc page I was able to successfully start my celery application.
Start from the simplest demo.
π€Carl Lee
5π
Can you double-check that you imported the Celery app in your __init__.py
file like the getting started guide mentions? https://docs.celeryproject.org/en/latest/django/first-steps-with-django.html
I was having a similar issue where everything else looked correct, but the task was hanging when I used .delay()
Adding the import immediately fixed the problem.
π€atm
- [Django]-Django celery only calls 1 of 2 apply_async task
- [Django]-How to use date__range filter efficiently in django
- [Django]-Django URLs without function in views
4π
maybe this helps :
you have to update project conf folder init.py file:
from __future__ import absolute_import
# This will make sure the app is always imported when
# Django starts so that shared_task will use this app.
from .celery import app as celery_app
π€Amir.S
- [Django]-How to redirect (including URL change) in Django?
- [Django]-Post LIST OF OBJECTS from HTML/axios with multipart/form-data to DRF multipart parser
- [Django]-Django Queryset Count
- [Django]-Django β Admin β Inline β 'extra' value based on some condition
Source:stackexchange.com