mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-25 14:32:05 +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:
|
else:
|
||||||
interval = None
|
interval = None
|
||||||
crontab = settings.AUTH_LDAP_SYNC_CRONTAB
|
crontab = settings.AUTH_LDAP_SYNC_CRONTAB
|
||||||
|
if crontab:
|
||||||
|
# 优先使用 crontab
|
||||||
|
interval = None
|
||||||
tasks = {
|
tasks = {
|
||||||
task_name: {
|
task_name: {
|
||||||
'task': import_ldap_user.name,
|
'task': import_ldap_user.name,
|
||||||
|
Loading…
Reference in New Issue
Block a user