我想使用Celery任务将单个邮件异步发送给多个收件人。它的工作非常缓慢,并且也显示错误。请帮助我。
from celery.registry import tasks
from celery.task import Task
import pyotp
from django.core.mail import EmailMultiAlternatives
class CreateDriveTask(Task):
def run(self, email_list):
msg = "hiiiiiiiiii"
return EmailMultiAlternatives("Welcome",msg,"hardeepjethwani123@gmail.com",email_list).send()
tasks.register(CreateDriveTask)
想要以某种速度发送邮件而没有任何错误