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

Commit 8593188

Browse files
fix(deploy): Honor waitTime for Deploy commands (#1443)
Honor deploy command waitTime Instead of hardcoding the deployment result timeout - honor the user's input. --------- Co-authored-by: Azlam <[email protected]>
1 parent bac4fa3 commit 8593188

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/core/src/deployers/DeploySourceToOrgImpl.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ export default class DeploySourceToOrgImpl implements DeploymentExecutor {
180180
});
181181

182182
// Wait for polling to finish and get the DeployResult object
183-
const result = await deploy.pollStatus({ frequency: Duration.seconds(30), timeout: Duration.hours(2) });
183+
const hoursInWaitTime = Number(this.deploymentOptions.waitTime) / 60;
184+
const result = await deploy.pollStatus({ frequency: Duration.seconds(30), timeout: Duration.hours(hoursInWaitTime) });
184185
return result;
185186
}
186187

0 commit comments

Comments
 (0)