From 6f7675c83aa54dee41f03ae04a604932992becb6 Mon Sep 17 00:00:00 2001 From: Nathan Date: Wed, 5 Jun 2024 16:01:36 -0700 Subject: [PATCH] appservice: Change deployment polling interval from 5s to 1s (#1739) * Change deployment polling interval from 5s to 1s * Revert changes to siteClient --- appservice/src/deploy/waitForDeploymentToComplete.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/appservice/src/deploy/waitForDeploymentToComplete.ts b/appservice/src/deploy/waitForDeploymentToComplete.ts index 50fa91e230..d1daedb21f 100644 --- a/appservice/src/deploy/waitForDeploymentToComplete.ts +++ b/appservice/src/deploy/waitForDeploymentToComplete.ts @@ -34,7 +34,8 @@ export async function waitForDeploymentToComplete(context: IActionContext & Part const kuduClient = await site.createClient(context); const { expectedId, token, locationUrl } = options; - const pollingInterval = options.pollingInterval ?? 5000; + // recommended to poll every second or the deployment id can be recycled before we find it + const pollingInterval = options.pollingInterval ?? 1000; while (!token?.isCancellationRequested) { if (locationUrl) {