From fd0a21e6a03ebe921b6e043743c1919c81f0991b Mon Sep 17 00:00:00 2001 From: Azlam <43767972+azlam-abdulsalam@users.noreply.github.com> Date: Thu, 9 Mar 2023 23:27:11 +1100 Subject: [PATCH] fix(deploy): ensure max retry count is set to 10 (#1263) * 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 --- packages/sfpowerscripts-cli/src/impl/deploy/DeployImpl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sfpowerscripts-cli/src/impl/deploy/DeployImpl.ts b/packages/sfpowerscripts-cli/src/impl/deploy/DeployImpl.ts index 194cefe6f..0b1454c01 100644 --- a/packages/sfpowerscripts-cli/src/impl/deploy/DeployImpl.ts +++ b/packages/sfpowerscripts-cli/src/impl/deploy/DeployImpl.ts @@ -241,7 +241,7 @@ export default class DeployImpl { } else return false; } }, - { retries: 1, minTimeout: 2000 } + { retries: 10, minTimeout: 30000 } ); if (packageInstallationResult.result === PackageInstallationStatus.Succeeded) {