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

Add graceful shutdown on SIGTERM #1014

Merged
merged 2 commits into from May 30, 2023
Merged

Conversation

InCogNiTo124
Copy link
Contributor

Closes #676

This is my first significant exposure to Rust in general, especially async. I had to learn a lot of background for these few lines of code lol

Anyways, I tested it with a local docker-compose.yml and it seems to be working
(working = it does not wait anymore for the timeout and SIGKILL, but it shuts down seemingly immediately with a corresponding message and exit code 0).
image

Further tests are welcome!

@vercel
Copy link

vercel bot commented May 29, 2023

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

Name Status Preview Comments Updated (UTC)
atuin ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 29, 2023 9:47pm

@conradludgate
Copy link
Collaborator

Perfect, thank you!

@conradludgate conradludgate merged commit 5dc189c into atuinsh:main May 30, 2023
9 checks passed
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.

atuin server (in containers) should handle signals
2 participants