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

Honor waitTime for Deploy commands #1443

Merged
merged 7 commits into from
Nov 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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