19👍
The "task" is no longer in version 5.x
You can use version 4.x
- pip3 uninstall celery
- pip3 install celery==4.4.2
Edited the spaces
5👍
They deprecated that functionality as I understood from this issue: https://github.com/celery/celery/issues/6406
Now it seems to be that you need to use this to make scheduled tasks:
https://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html?highlight=periodic
- How to override Django admin's views?
- How to specify uniqueness for a tuple of field in a Django model
- Django widget override template
0👍
I encountered this but I used this import below with celery==5.2.7
from celery.schedules import crontab
- How to test (using unittest) the HTML output of a Django view?
- Django prefetch_related's Prefetch, order_by?
- Django-admin.py startproject opens notepad, instead of creating a project
- AuthAlreadyAssociated Exception in Django Social Auth
Source:stackexchange.com