from time import sleep

from celery import shared_task
from django.core.mail import send_mail


@shared_task
def send_mail_asy(email):

    sleep(3)

    print("send mail", email)

    return "Hello"


@shared_task
def send_mail_celery(email):

    send_mail("Test", "Hello", "rongjiawei1204@163.com", [email])


f599948ece9b28f79e244edcb3beab430b1f7225
<mask token>

<mask token>


@shared_task
def send_mail_asy(email):
    sleep(3)
    print('send mail', email)
    return 'Hello'


<mask token>

<mask token>


@shared_task
def send_mail_asy(email):
    sleep(3)
    print('send mail', email)
    return 'Hello'


@shared_task
def send_mail_celery(email):
    send_mail('Test', 'Hello', 'rongjiawei1204@163.com', [email])

from time import sleep
from celery import shared_task
from django.core.mail import send_mail


@shared_task
def send_mail_asy(email):
    sleep(3)
    print('send mail', email)
    return 'Hello'


@shared_task
def send_mail_celery(email):
    send_mail('Test', 'Hello', 'rongjiawei1204@163.com', [email])

from time import sleep

from celery import shared_task
from django.core.mail import send_mail


@shared_task
def send_mail_asy(email):

    sleep(3)

    print("send mail", email)

    return "Hello"


@shared_task
def send_mail_celery(email):

    send_mail("Test", "Hello", "rongjiawei1204@163.com", [email])

