kopia lustrzana https://github.com/glidernet/ogn-python
Add missing kwargs (fixes #71)
rodzic
36ab443b15
commit
39ea79b0ad
|
@ -34,12 +34,12 @@ For best performance you should use [TimescaleDB](https://www.timescale.com), wh
|
||||||
apt-get install redis-server
|
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:
|
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
|
6. Create database
|
||||||
|
|
||||||
|
|
|
@ -32,16 +32,23 @@ CELERYBEAT_SCHEDULE = {
|
||||||
'update-logbook': {
|
'update-logbook': {
|
||||||
'task': 'update_logbook_entries',
|
'task': 'update_logbook_entries',
|
||||||
'schedule': timedelta(hours=2),
|
'schedule': timedelta(hours=2),
|
||||||
|
'kwargs': {'day_offset': 0},
|
||||||
},
|
},
|
||||||
'update-max-altitudes': {
|
'update-max-altitudes': {
|
||||||
'task': 'update_logbook_max_altitude',
|
'task': 'update_logbook_max_altitude',
|
||||||
'schedule': timedelta(hours=1),
|
'schedule': timedelta(hours=1),
|
||||||
|
'kwargs': {'day_offset': 0},
|
||||||
},
|
},
|
||||||
'update-stats-daily': {
|
'update-stats-daily': {
|
||||||
'task': 'update_stats',
|
'task': 'update_stats',
|
||||||
'schedule': crontab(hour=0, minute=5),
|
'schedule': crontab(hour=0, minute=5),
|
||||||
'kwargs': {'day_offset': -1},
|
'kwargs': {'day_offset': -1},
|
||||||
},
|
},
|
||||||
|
'update-logbook-daily': {
|
||||||
|
'task': 'update_logbook_entries',
|
||||||
|
'schedule': crontab(hour=1, minute=0),
|
||||||
|
'kwargs': {'day_offset': -1},
|
||||||
|
},
|
||||||
'purge_old_data': {
|
'purge_old_data': {
|
||||||
'task': 'purge_old_data',
|
'task': 'purge_old_data',
|
||||||
'schedule': timedelta(hours=1),
|
'schedule': timedelta(hours=1),
|
||||||
|
|
Ładowanie…
Reference in New Issue