diff options
author | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 15:50:32 +0200 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2015-10-26 15:50:32 +0200 |
commit | 052f2a44c8b1d809060c1d9501d31f71e8ef79e8 (patch) | |
tree | 0521d6842f5d2e22d5894ceaf8e4029e25981416 /settings.py | |
parent | b6a1e83259204d0c321391ffddb0f3fd6c2f207d (diff) | |
download | Servo-052f2a44c8b1d809060c1d9501d31f71e8ef79e8.tar.gz Servo-052f2a44c8b1d809060c1d9501d31f71e8ef79e8.tar.bz2 Servo-052f2a44c8b1d809060c1d9501d31f71e8ef79e8.zip |
Added check_mail task
Diffstat (limited to 'settings.py')
-rw-r--r-- | settings.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/settings.py b/settings.py index d1d3e95..9bc0b87 100644 --- a/settings.py +++ b/settings.py @@ -3,6 +3,7 @@ import os import re import socket +from datetime import timedelta from django.contrib.messages import constants as messages DEBUG = False @@ -224,4 +225,11 @@ GSX_KEY = 'uploads/settings/gsx_key.pem' os.environ['GSX_CERT'] = GSX_CERT os.environ['GSX_KEY'] = GSX_KEY +CELERYBEAT_SCHEDULE = { + 'check_mail': { + 'task': 'servo.tasks.check_mail', + 'schedule': timedelta(seconds=300), + }, +} + from local_settings import * |