feat: 修改LDAP导入定时任务interval/crontab优先级

Signed-off-by: Jiangjie.Bai <bugatti_it@163.com>
pull/8114/head
Jiangjie.Bai 3 years ago committed by Jiangjie.Bai
parent d2dd487e2c
commit c29d133776

@ -112,6 +112,9 @@ def import_ldap_user_periodic():
else:
interval = None
crontab = settings.AUTH_LDAP_SYNC_CRONTAB
if crontab:
# 优先使用 crontab
interval = None
tasks = {
task_name: {
'task': import_ldap_user.name,

Loading…
Cancel
Save