Add missing kwargs (fixes #71)

pull/78/head
Konstantin Gründger 2019-04-30 07:18:47 +02:00
rodzic 36ab443b15
commit 39ea79b0ad
2 zmienionych plików z 11 dodań i 4 usunięć

Wyświetl plik

@ -34,12 +34,12 @@ For best performance you should use [TimescaleDB](https://www.timescale.com), wh
apt-get install redis-server
```
5. Set the configuration
5. Set the configuration.
Let the environment variable `OGN_CONFIG_MODULE` point to the configuration file:
```
export OGN_CONFIG_MODULE="config/default.py"
```
```
export OGN_CONFIG_MODULE="config/default.py"
```
6. Create database

Wyświetl plik

@ -32,16 +32,23 @@ CELERYBEAT_SCHEDULE = {
'update-logbook': {
'task': 'update_logbook_entries',
'schedule': timedelta(hours=2),
'kwargs': {'day_offset': 0},
},
'update-max-altitudes': {
'task': 'update_logbook_max_altitude',
'schedule': timedelta(hours=1),
'kwargs': {'day_offset': 0},
},
'update-stats-daily': {
'task': 'update_stats',
'schedule': crontab(hour=0, minute=5),
'kwargs': {'day_offset': -1},
},
'update-logbook-daily': {
'task': 'update_logbook_entries',
'schedule': crontab(hour=1, minute=0),
'kwargs': {'day_offset': -1},
},
'purge_old_data': {
'task': 'purge_old_data',
'schedule': timedelta(hours=1),