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

Commit

Permalink
fix(deploy): Honor waitTime for Deploy commands (#1443)
Browse files Browse the repository at this point in the history
Honor deploy command waitTime

Instead of hardcoding the deployment result timeout - honor the user's input.

---------

Co-authored-by: Azlam <[email protected]>
  • Loading branch information
brandonmikeska and azlam-abdulsalam authored Nov 24, 2023
1 parent bac4fa3 commit 8593188
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/src/deployers/DeploySourceToOrgImpl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 8593188

Please sign in to comment.