fix: azure vault max_workers

pull/14558/head
Bai 2024-12-02 11:07:38 +08:00 committed by feng626
parent fa61688c28
commit 2d62dc0657
1 changed files with 1 additions and 1 deletions

View File

@ -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]