aboutsummaryrefslogtreecommitdiffstats
path: root/src/laas_dashboard/settings.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/laas_dashboard/settings.py')
-rw-r--r--src/laas_dashboard/settings.py26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/laas_dashboard/settings.py b/src/laas_dashboard/settings.py
index 7e27c8d..66de35d 100644
--- a/src/laas_dashboard/settings.py
+++ b/src/laas_dashboard/settings.py
@@ -220,35 +220,13 @@ RABBITMQ_DEFAULT_PASS = os.environ['RABBITMQ_DEFAULT_PASS']
CELERY_BROKER_URL = 'amqp://' + RABBITMQ_DEFAULT_USER + ':' + RABBITMQ_DEFAULT_PASS + '@rabbitmq:5672//'
CELERY_BEAT_SCHEDULE = {
+ # Keeping commented as an example for the future
'booking_poll': {
- 'task': 'dashboard.tasks.booking_poll',
+ 'task': 'dashboard.tasks.end_expired_bookings',
'schedule': timedelta(minutes=1)
- },
- 'free_hosts': {
- 'task': 'dashboard.tasks.free_hosts',
- 'schedule': timedelta(minutes=1)
- },
- 'notify_expiring': {
- 'task': 'notifier.tasks.notify_expiring',
- 'schedule': timedelta(hours=1)
- },
- 'query_vpn_users': {
- 'task': 'dashboard.tasks.query_vpn_users',
- 'schedule': timedelta(hours=1)
- },
- 'dispatch_emails': {
- 'task': 'notifier.tasks.dispatch_emails',
- 'schedule': timedelta(minutes=10)
}
}
# Notifier Settings
-EMAIL_HOST = os.environ.get('EMAIL_HOST')
-EMAIL_PORT = os.environ.get('EMAIL_PORT')
-EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER')
-EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD')
-EMAIL_USE_TLS = True
-DEFAULT_EMAIL_FROM = os.environ.get('DEFAULT_EMAIL_FROM', 'webmaster@localhost')
-SESSION_ENGINE = "django.contrib.sessions.backends.signed_cookies"
EXPIRE_LIFETIME = 12 # Minimum lifetime of booking to send notification
EXPIRE_HOURS = 48 # Notify when booking is expiring within this many hours