Skip to content

Commit 4dc0a2a

Browse files
mapleflowauvipy
authored andcommitted
Update README.rst (#50)
change last run time
1 parent 9e86b87 commit 4dc0a2a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ Important Warning about Time Zones
4444

4545
>>> from django_celery_beat.models import PeriodicTask, PeriodicTasks
4646
>>> PeriodicTask.objects.all().update(last_run_at=None)
47-
>>> PeriodicTasks.changed()
47+
>>> for task in PeriodicTask.objects.all():
48+
>>> PeriodicTasks.changed(task)
4849

4950
Note that this will reset the state as if the periodic tasks have never run
5051
before.

0 commit comments

Comments
 (0)