Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Make graceful shutdown add fatal messages in postgres #8402

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

srh
Copy link
Member

@srh srh commented Jun 26, 2024

Aside from fatal error message injection, we also add logic to wait on and properly join the postgres connections and tasks. Otherwise we would not properly gracefully shut down.

One easily reversible decision made was to avoid passing the CancellationToken down recursively and instead track partially written socket buffers. Because we have other CancellationTokens floating around in query logic (which IIRC are not actually used -- nothing triggers them) that might have a reason to change in the future.

@srh srh requested review from a team as code owners June 26, 2024 21:56
Also contains modifications to make the graceful shutdown process wait
for graceful shutdown actions to finish.
@srh srh force-pushed the graceful-shutdown branch from 913f79a to c7e377f Compare June 26, 2024 23:26
Copy link

vercel bot commented Jun 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

8 Ignored Deployments
Name Status Preview Comments Updated (UTC)
examples-angular-dashboard ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:27pm
examples-react-d3 ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:27pm
examples-react-dashboard ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:27pm
examples-react-data-table ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:27pm
examples-react-highcharts ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:27pm
examples-react-material-ui ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:27pm
examples-react-pivot-table ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:27pm
examples-vue-query-builder ⬜️ Ignored (Inspect) Visit Preview Jun 26, 2024 11:27pm

Copy link
Member

@ovr ovr left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@srh srh merged commit 8fe1af2 into master Jun 28, 2024
64 checks passed
@srh srh deleted the graceful-shutdown branch June 28, 2024 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants