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

graceful shutdownをする #319

Open
arata-nvm opened this issue Jun 29, 2024 · 0 comments
Open

graceful shutdownをする #319

arata-nvm opened this issue Jun 29, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@arata-nvm
Copy link
Member

リクエストの処理中にデプロイ等の理由でサーバーが終了されると、処理が正常に終了せず、なんらかの不整合を生じさせる恐れがある。したがって、with_graceful_shutdownを用いてgraceful shutdownをするようにするとよい。

ref: https://github.com/tokio-rs/axum/blob/main/examples/graceful-shutdown/src/main.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant