Update by ialbert on Fri Sep  7 09:41:28 EDT 2018 from yolo.local
@@ -5,6 +5,7 @@ This is active only when deployed via UWSGI
import logging, time, shutil, subprocess
from django.core import management
from django.utils.encoding import force_text
+from mailer.engine import send_all
import time
@@ -55,6 +56,14 @@ try:
time.sleep(N)
logger.info(f"<- JOB END {value}")
+ @timer(20)
+ def send_emails(value):
+ """
+ Sends queued emails
+ """
+ send_all()
+ logger.info("send_all()")
+
@spool(pass_arguments=True)
def execute_job(job_id):
"""
