From c725de7b5ba02bffeb5285569332bf42797224e7 Mon Sep 17 00:00:00 2001 From: Stephen Shirley Date: Sun, 8 Apr 2018 11:42:18 +0200 Subject: [PATCH] Remove trailing , from CELERYBEAT_SCHEDULE example. If a user copies the example verbatim, celery logs this error: ``` [2018-04-07 14:57:29,930: ERROR/MainProcess] Cannot add entry 'update_all_corpstats' to database schedule: TypeE rror('from_entry() argument after ** must be a mapping, not tuple',). Contents: ({'task': 'allianceauth.corputil s.tasks.update_all_corpstats', 'schedule': },) ``` --- docs/features/corpstats.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/features/corpstats.md b/docs/features/corpstats.md index 0a274826..18beb86b 100644 --- a/docs/features/corpstats.md +++ b/docs/features/corpstats.md @@ -116,7 +116,7 @@ By default Corp Stats are only updated on demand. If you want to automatically r CELERYBEAT_SCHEDULE['update_all_corpstats'] = { 'task': 'allianceauth.corputils.tasks.update_all_corpstats', 'schedule': crontab(minute=0, hour="*/6"), - }, + } Adjust the crontab as desired.