Skip to content

Commit

Permalink
appservice: Change deployment polling interval from 5s to 1s (#1739)
Browse files Browse the repository at this point in the history
* Change deployment polling interval from 5s to 1s

* Revert changes to siteClient
  • Loading branch information
nturinski authored Jun 5, 2024
1 parent 79f5135 commit 6f7675c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion appservice/src/deploy/waitForDeploymentToComplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6f7675c

Please sign in to comment.