mirror of https://github.com/jumpserver/jumpserver
perf: 提高短信发送任务优先级
parent
bb27ff7f8a
commit
d71c41e384
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue