Commit 6a7bb6c1 by Szeberényi Imre

Randomized mail messages

CELERY_TIMEZONE='CET'
parent 479d230f
......@@ -22,6 +22,7 @@ from datetime import timedelta
from celery.schedules import crontab
from kombu import Queue, Exchange
from os import getenv
from random import randint
HOSTNAME = "localhost"
......@@ -67,7 +68,7 @@ celery.conf.update(
'dashboard.send_email_notifications': {
'task': 'dashboard.tasks.local_periodic_tasks.'
'send_email_notifications',
'schedule': crontab(minute=10, hour=1),
'schedule': crontab(minute=randint(0,59), hour=randint(0,6)),
'options': {'queue': 'localhost.man'}
},
# 'vm.local_periodic_tasks': {
......@@ -75,8 +76,8 @@ celery.conf.update(
# 'schedule': crontab(**crontab_parser(AUTO_MIGRATION_CRONTAB)),
# 'options': {'queue': 'localhost.man.slow'},
# },
}
},
CELERY_TIMEZONE='CET'
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment