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) {