Skip to content

Conversation

@AlessioGr
Copy link
Member

@AlessioGr AlessioGr commented Nov 17, 2025

This PR removes process.exit(1) from our exception handlers within db connect methods. When a connection error occurred in vercel fluid compute, it ungracefully shut down the entire compute process.

By re-throwing the error instead, vercel is able to gracefully handle the error without shutting down concurrent requests running on the same compute instance.

process.exit(1) was initially added by this commit, however noone was able to recall why it was added.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 17, 2025

📦 esbuild Bundle Analysis for payload

This analysis was generated by esbuild-bundle-analyzer. 🤖
This PR introduced no changes to the esbuild bundle! 🙌

@AlessioGr AlessioGr marked this pull request as ready for review November 17, 2025 22:23
@@ -1133,12 +1127,12 @@
return cached.payload
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awaiting the promise is already wrapped in try{} catch {}. Feels weird not to wrap this floating promise execution in the same try {} catch {}

@AlessioGr AlessioGr enabled auto-merge (squash) November 17, 2025 22:38
@AlessioGr AlessioGr merged commit ab03163 into main Nov 18, 2025
99 checks passed
@AlessioGr AlessioGr deleted the fix/exit-1-db branch November 18, 2025 10:46
@github-actions
Copy link
Contributor

🚀 This is included in version v3.65.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants