Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

Commit

Permalink
fix(deploy): ensure max retry count is set to 10 (#1263)
Browse files Browse the repository at this point in the history
* fix(deploy): ensure max retry count is set to 10

deploy doesnt respect max retry count, it is always set at 2 retries, as it was incorrectly set. The
fix sets a  max default of 10 with a break if earlier if the maxRetry is lower

fixes #1262

* Increase time between retries to 30 seconds
  • Loading branch information
azlam-abdulsalam authored Mar 9, 2023
1 parent 302f5a1 commit fd0a21e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sfpowerscripts-cli/src/impl/deploy/DeployImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export default class DeployImpl {
} else return false;
}
},
{ retries: 1, minTimeout: 2000 }
{ retries: 10, minTimeout: 30000 }
);

if (packageInstallationResult.result === PackageInstallationStatus.Succeeded) {
Expand Down

0 comments on commit fd0a21e

Please sign in to comment.