diff --git a/packages/core/src/deployers/DeploySourceToOrgImpl.ts b/packages/core/src/deployers/DeploySourceToOrgImpl.ts index 2b2c581e7..69810d1f3 100644 --- a/packages/core/src/deployers/DeploySourceToOrgImpl.ts +++ b/packages/core/src/deployers/DeploySourceToOrgImpl.ts @@ -180,7 +180,8 @@ export default class DeploySourceToOrgImpl implements DeploymentExecutor { }); // Wait for polling to finish and get the DeployResult object - const result = await deploy.pollStatus({ frequency: Duration.seconds(30), timeout: Duration.hours(2) }); + const hoursInWaitTime = Number(this.deploymentOptions.waitTime) / 60; + const result = await deploy.pollStatus({ frequency: Duration.seconds(30), timeout: Duration.hours(hoursInWaitTime) }); return result; }