From 33086ab3b82d18c7a20761b503e033b71246a1a4 Mon Sep 17 00:00:00 2001 From: Scott Beddall <45376673+scbedd@users.noreply.github.com> Date: Tue, 12 Sep 2023 16:01:22 -0700 Subject: [PATCH] enforce each restore path to its own workqueue (#6955) --- 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);