Skip to content

Commit db85ef2

Browse files
committed
refactor(cache): use Promise.allSettled for cache warming
Switch from Promise.all to Promise.allSettled in warmCaches to ensure all cache warming attempts complete even if one fails. Each operation already has error handling, but allSettled provides an extra layer of defense against unexpected errors that could prevent other caches from warming.
1 parent 8d8eac6 commit db85ef2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/cli/src/utils/cache-strategies.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export async function warmCaches(
188188
}
189189
})
190190

191-
await Promise.all(warmPromises)
191+
await Promise.allSettled(warmPromises)
192192
}
193193

194194
/**

0 commit comments

Comments
 (0)