Skip to content

Add graceful shutdown on SIGTERM#1014

Merged
conradludgate merged 2 commits intoatuinsh:mainfrom
InCogNiTo124:signals
May 30, 2023
Merged

Add graceful shutdown on SIGTERM#1014
conradludgate merged 2 commits intoatuinsh:mainfrom
InCogNiTo124:signals

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
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