feat(ldap): 获取ldap用户列表,采用线程方式

This commit is contained in:
Bai
2020-09-07 20:33:44 +08:00
committed by 老广
parent d944b5f4ff
commit 80b9db417c
2 changed files with 8 additions and 9 deletions

View File

@@ -1,17 +1,14 @@
# coding: utf-8
#
from celery import shared_task
from common.utils import get_logger
from ..utils import LDAPSyncUtil
__all__ = ['sync_ldap_user_task']
__all__ = ['sync_ldap_user']
logger = get_logger(__file__)
@shared_task
def sync_ldap_user_task():
def sync_ldap_user():
LDAPSyncUtil().perform_sync()