mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-25 06:21:58 +00:00
feat: 修改LDAP导入定时任务interval/crontab优先级
Signed-off-by: Jiangjie.Bai <bugatti_it@163.com>
This commit is contained in:
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
Block a user