mirror of https://github.com/jumpserver/jumpserver
fix: azure vault max_workers
parent
fa61688c28
commit
2d62dc0657
|
@ -52,7 +52,7 @@ def sync_secret_to_vault():
|
|||
for model in to_sync_models:
|
||||
instances += list(model.objects.all())
|
||||
|
||||
max_workers = 1 if VaultTypeChoices.azure == vault_client.type else max_workers = 10
|
||||
max_workers = 1 if VaultTypeChoices.azure == vault_client.type else 10
|
||||
with ThreadPoolExecutor(max_workers=max_workers) as executor:
|
||||
tasks = [executor.submit(sync_instance, instance) for instance in instances]
|
||||
|
||||
|
|
Loading…
Reference in New Issue