From 9ebbc4c7c24eb50edfc07cc78cfcd09426b119f3 Mon Sep 17 00:00:00 2001 From: "Scott Beddall (from Dev Box)" Date: Tue, 12 Sep 2023 14:38:30 -0700 Subject: [PATCH] enforce each restore path to its own workqueue --- tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs index 34d0f913f4c..95234d4b7dc 100644 --- a/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs +++ b/tools/test-proxy/Azure.Sdk.Tools.TestProxy/Store/GitStore.cs @@ -172,7 +172,8 @@ public async Task Push(string pathToAssetsJson) { public async Task Restore(string pathToAssetsJson) { var config = await ParseConfigurationFile(pathToAssetsJson); - var restoreQueue = InitTasks.GetOrAdd("restore", new TaskQueue()); + var restoreQueue = InitTasks.GetOrAdd(config.AssetsJsonRelativeLocation, new TaskQueue()); + await restoreQueue.EnqueueAsync(async () => { var initialized = IsAssetsRepoInitialized(config);