[Update] 迁移celery到ops

This commit is contained in:
ibuler
2018-04-02 13:19:31 +08:00
parent df80e8047a
commit a4c843ff13
21 changed files with 224 additions and 135 deletions

View File

@@ -1,13 +1,13 @@
from django.core.mail import send_mail
from django.conf import settings
from .celery import app
from celery import shared_task
from .utils import get_logger
logger = get_logger(__file__)
@app.task
@shared_task
def send_mail_async(*args, **kwargs):
""" Using celery to send email async