config/default: Add scheduled tasks update-logbook and update-ddb

pull/39/head
Fabian P. Schmidt 2016-02-04 22:52:37 +01:00
rodzic 65aefc39a4
commit a71d5862f7
1 zmienionych plików z 12 dodań i 4 usunięć

Wyświetl plik

@ -7,14 +7,22 @@ CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
from datetime import timedelta from datetime import timedelta
CELERYBEAT_SCHEDULE = { CELERYBEAT_SCHEDULE = {
'update-ddb': {
'task': 'ogn.collect.database.import_ddb',
'schedule': timedelta(minutes=15),
},
'update-receiver-distance': { 'update-receiver-distance': {
'task': 'ogn.collect.heatmap.update_beacon_receiver_distance_all', 'task': 'ogn.collect.heatmap.update_beacon_receiver_distance_all',
'schedule': timedelta(minutes=5), 'schedule': timedelta(minutes=5),
}, },
'update-receiver-table': { 'update-logbook': {
'task': 'ogn.collect.receiver.update_receivers', 'task': 'ogn.collect.logbook.compute_takeoff_and_landing',
'schedule': timedelta(minutes=5), 'schedule': timedelta(minutes=15),
}, },
'update-receiver-table': {
'task': 'ogn.collect.receiver.update_receivers',
'schedule': timedelta(minutes=5),
},
} }
CELERY_TIMEZONE = 'UTC' CELERY_TIMEZONE = 'UTC'