2016-09-23 18:13:23 +00:00
|
|
|
SQLALCHEMY_DATABASE_URI = 'postgresql:///ogn'
|
2016-01-29 01:34:12 +00:00
|
|
|
|
|
|
|
BROKER_URL = 'redis://localhost:6379/0'
|
|
|
|
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
|
2016-01-29 04:33:59 +00:00
|
|
|
|
|
|
|
|
|
|
|
from datetime import timedelta
|
|
|
|
|
|
|
|
CELERYBEAT_SCHEDULE = {
|
2016-02-04 21:52:37 +00:00
|
|
|
'update-ddb': {
|
|
|
|
'task': 'ogn.collect.database.import_ddb',
|
|
|
|
'schedule': timedelta(minutes=15),
|
|
|
|
},
|
2016-06-29 21:26:30 +00:00
|
|
|
'update-takeoff-and-landing': {
|
2016-04-28 18:36:56 +00:00
|
|
|
'task': 'ogn.collect.logbook.compute_takeoff_and_landing',
|
|
|
|
'schedule': timedelta(minutes=15),
|
|
|
|
},
|
2016-06-29 21:26:30 +00:00
|
|
|
'update-logbook': {
|
|
|
|
'task': 'ogn.collect.logbook.compute_logbook',
|
|
|
|
'schedule': timedelta(minutes=1),
|
|
|
|
},
|
|
|
|
'update-altitudes': {
|
|
|
|
'task': 'ogn.collect.logbook.compute_altitudes',
|
|
|
|
'schedule': timedelta(minutes=1),
|
|
|
|
},
|
2016-04-28 18:36:56 +00:00
|
|
|
'update-receiver-table': {
|
|
|
|
'task': 'ogn.collect.receiver.update_receivers',
|
|
|
|
'schedule': timedelta(minutes=15),
|
2016-01-29 04:33:59 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
CELERY_TIMEZONE = 'UTC'
|