perf: 提高短信发送任务优先级

pull/12832/head
wangruidong 2024-03-15 14:45:41 +08:00 committed by Bryan
parent bb27ff7f8a
commit d71c41e384
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ class SendAndVerifyCodeUtil(object):
self.other_args = kwargs
def gen_and_send_async(self):
return send_async.delay(self)
return send_async.apply_async(kwargs={"sender": self}, priority=100)
def gen_and_send(self):
ttl = self.__ttl()