Skip to content

Commit 01eb673

Browse files
committed
refactor(cli): Keeping checking for function deployment status
1 parent a5826b7 commit 01eb673

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

templates/cli/lib/commands/push.js.twig

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -975,11 +975,6 @@ const pushFunction = async ({ functionId, async, returnOnZero } = { returnOnZero
975975
let pollChecks = 0;
976976

977977
while (true) {
978-
if (pollChecks >= POLL_MAX_DEBOUNCE) {
979-
updaterRow.update({ end: 'Deployment is taking too long. Please check the console for more details.' })
980-
break;
981-
}
982-
983978
response = await functionsGetDeployment({
984979
functionId: func['$id'],
985980
deploymentId: deploymentId,
@@ -1018,7 +1013,7 @@ const pushFunction = async ({ functionId, async, returnOnZero } = { returnOnZero
10181013
}
10191014

10201015
pollChecks++;
1021-
await new Promise(resolve => setTimeout(resolve, POLL_DEBOUNCE));
1016+
await new Promise(resolve => setTimeout(resolve, POLL_DEBOUNCE * 1.5));
10221017
}
10231018
} catch (e) {
10241019
updaterRow.fail({ errorMessage: e.message ?? 'Unknown error occurred. Please try again' })

0 commit comments

Comments
 (0)