Przeglądaj źródła

Fix confusing beat examples. Closes #1027

Ask Solem 12 lat temu
rodzic
commit
cd4b3dc5f5
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      docs/userguide/periodic-tasks.rst

+ 2 - 2
docs/userguide/periodic-tasks.rst

@@ -91,7 +91,7 @@ Example: Run the `tasks.add` task every 30 seconds.
     from datetime import timedelta
     from datetime import timedelta
 
 
     CELERYBEAT_SCHEDULE = {
     CELERYBEAT_SCHEDULE = {
-        'runs-every-30-seconds': {
+        'add-every-30-seconds': {
             'task': 'tasks.add',
             'task': 'tasks.add',
             'schedule': timedelta(seconds=30),
             'schedule': timedelta(seconds=30),
             'args': (16, 16)
             'args': (16, 16)
@@ -163,7 +163,7 @@ the :class:`~celery.schedules.crontab` schedule type:
 
 
     CELERYBEAT_SCHEDULE = {
     CELERYBEAT_SCHEDULE = {
         # Executes every Monday morning at 7:30 A.M
         # Executes every Monday morning at 7:30 A.M
-        'every-monday-morning': {
+        'add-every-monday-morning': {
             'task': 'tasks.add',
             'task': 'tasks.add',
             'schedule': crontab(hour=7, minute=30, day_of_week=1),
             'schedule': crontab(hour=7, minute=30, day_of_week=1),
             'args': (16, 16),
             'args': (16, 16),