ogn-python/config/default.py

35 wiersze
1.0 KiB
Python
Czysty Zwykły widok Historia

2018-10-21 15:34:03 +00:00
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres@localhost:5432/ogn'
SQLALCHEMY_TRACK_MODIFICATIONS = False
2019-01-09 08:01:06 +00:00
# Celery stuff
2019-03-10 14:58:10 +00:00
CELERY_BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
from datetime import timedelta
2019-01-09 08:01:06 +00:00
beat_schedule = {
'update-ddb': {
2019-03-10 14:58:10 +00:00
'task': 'ogn_python.collect.celery.import_ddb',
'schedule': timedelta(minutes=15),
},
2017-12-17 13:34:14 +00:00
'update-country-codes': {
2019-03-10 14:58:10 +00:00
'task': 'ogn_python.collect.celery.update_receivers_country_code',
2017-12-17 13:34:14 +00:00
'schedule': timedelta(minutes=5),
},
2016-06-29 21:26:30 +00:00
'update-takeoff-and-landing': {
2019-03-10 14:58:10 +00:00
'task': 'ogn_python.collect.celery.update_takeoff_landings',
'schedule': timedelta(minutes=15),
},
2016-06-29 21:26:30 +00:00
'update-logbook': {
2019-03-10 14:58:10 +00:00
'task': 'ogn_python.collect.celery.update_logbook_entries',
2017-12-17 13:34:14 +00:00
'schedule': timedelta(minutes=15),
2016-06-29 21:26:30 +00:00
},
2017-12-17 13:34:14 +00:00
'update-max-altitudes': {
2019-03-10 14:58:10 +00:00
'task': 'ogn_python.collect.celery.update_logbook_max_altitude',
'schedule': timedelta(minutes=15),
},
}
2019-01-09 08:01:06 +00:00
timezone = 'UTC'