kopia lustrzana https://github.com/glidernet/ogn-python
config/default: Add scheduled tasks update-logbook and update-ddb
rodzic
65aefc39a4
commit
a71d5862f7
|
@ -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'
|
||||||
|
|
Ładowanie…
Reference in New Issue