mirror of https://github.com/jumpserver/jumpserver
feat: 修改LDAP导入定时任务interval/crontab优先级
Signed-off-by: Jiangjie.Bai <bugatti_it@163.com>pull/8114/head
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…
Reference in New Issue