aboutsummaryrefslogtreecommitdiffstats
path: root/src/laas_dashboard/settings.py
diff options
context:
space:
mode:
authorJustin Choquette <jchoquette@iol.unh.edu>2023-06-08 12:46:53 -0400
committerJustin Choquette <jchoquette@iol.unh.edu>2023-07-21 13:17:51 -0400
commita09db9f287a02873c0226759f8ea444bb304cd59 (patch)
tree59e744e4b998973a808abbae2d21fbdd6201d829 /src/laas_dashboard/settings.py
parent8ddc7e820e120f1dde4e901d3cb6f1dd3f281e65 (diff)
LaaS 3.0 Almost MVP
Change-Id: Ided9a43cf3088bb58a233dc459711c03f43e11b8 Signed-off-by: Justin Choquette <jchoquette@iol.unh.edu>
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