mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-04 15:14:01 +00:00
[Update] 迁移celery到ops
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user