We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
优雅退出,我觉得除了让已经在执行的请求继续执行完毕再结束整个进程外,还可以自定义要关闭的第三方组件或其他操作,看了下hertz.go文件的,signalWaiter可以自定义,这样雀食可以自己做个。
但其实不如直接让Spin可以接收一个Close方法用于用户自定义 结束后要做的操作,我这种懒人就懒得去自定义个signalWaiter了, 目前没看到这个相关的,也或许是已经有了但我没看完,狗头保命。
The text was updated successfully, but these errors were encountered:
参考 http://cloudwego.cn/zh/docs/hertz/tutorials/basic-feature/graceful-shutdown/
Sorry, something went wrong.
No branches or pull requests
优雅退出,我觉得除了让已经在执行的请求继续执行完毕再结束整个进程外,还可以自定义要关闭的第三方组件或其他操作,看了下hertz.go文件的,signalWaiter可以自定义,这样雀食可以自己做个。
但其实不如直接让Spin可以接收一个Close方法用于用户自定义 结束后要做的操作,我这种懒人就懒得去自定义个signalWaiter了, 目前没看到这个相关的,也或许是已经有了但我没看完,狗头保命。
The text was updated successfully, but these errors were encountered: