Update by natay on Fri Sep  7 10:16:14 EDT 2018 from HUCK-2061DM003.local
@@ -6,6 +6,7 @@ import logging, time, shutil, subprocess
from django.core import management
from django.utils.encoding import force_text
+
import time
logger = logging.getLogger("engine")
@@ -20,6 +21,15 @@ try:
HAS_UWSGI = True
+ @timer(20)
+ def send_emails(**kwargs):
+ """
+ Sends queued emails
+ """
+ from mailer.engine import send_all
+ send_all()
+ logger.info("send_all()")
+
@timer(30)
def scheduler(args):
from biostar.engine.models import Job
