Skip to content

Commit 88df0ec

Browse files
committed
fix: allow workers.dev route propagation
1 parent d650d39 commit 88df0ec

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scripts/setup.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function runWrangler(arguments_, environment, required = true) {
243243

244244
async function waitForHealth(serviceUrl) {
245245
let lastError;
246-
for (let attempt = 0; attempt < 10; attempt += 1) {
246+
for (let attempt = 0; attempt < 30; attempt += 1) {
247247
try {
248248
const response = await fetch(`${serviceUrl}/healthz`);
249249
const body = await response.json();
@@ -254,7 +254,7 @@ async function waitForHealth(serviceUrl) {
254254
} catch (error) {
255255
lastError = error;
256256
}
257-
await new Promise((resolvePromise) => setTimeout(resolvePromise, 1_000));
257+
await new Promise((resolvePromise) => setTimeout(resolvePromise, 2_000));
258258
}
259259
throw new Error(`Worker health check failed: ${lastError?.message ?? "unknown error"}`);
260260
}

0 commit comments

Comments
 (0)