mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-10 09:06:21 +01:00
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': <crontab: 0 */6 * * * (m/h/d/dM/MY)>},)
```
This commit is contained in:
@@ -116,7 +116,7 @@ By default Corp Stats are only updated on demand. If you want to automatically r
|
|||||||
CELERYBEAT_SCHEDULE['update_all_corpstats'] = {
|
CELERYBEAT_SCHEDULE['update_all_corpstats'] = {
|
||||||
'task': 'allianceauth.corputils.tasks.update_all_corpstats',
|
'task': 'allianceauth.corputils.tasks.update_all_corpstats',
|
||||||
'schedule': crontab(minute=0, hour="*/6"),
|
'schedule': crontab(minute=0, hour="*/6"),
|
||||||
},
|
}
|
||||||
|
|
||||||
Adjust the crontab as desired.
|
Adjust the crontab as desired.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user