Skip to content

Commit bda678b

Browse files
PatDuJourOmer Katz
authored andcommitted
Update periodic-tasks.rst to fix import issue (celery#4194)
The docs were not updated for celery 4, which does not need django-celery library. Most issues arose were because of the doc does not give clear guidance for celery 4 and above. Fix issues: celery/django-celery#496 celery/django-celery#523 celery/django-celery#491 celery#3637
1 parent d3ce72d commit bda678b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/userguide/periodic-tasks.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ schedule manually.
6565
$ python manage.py shell
6666
>>> from djcelery.models import PeriodicTask
6767
>>> PeriodicTask.objects.update(last_run_at=None)
68+
69+
Django-Celery only supports Celery 4.0 and below, for Celery 4.0 and above, do as follow:
70+
71+
.. code-block:: console
72+
73+
$ python manage.py shell
74+
>>> from django_celery_beat.models import PeriodicTask
75+
>>> PeriodicTask.objects.update(last_run_at=None)
6876
6977
.. _beat-entries:
7078

0 commit comments

Comments
 (0)