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

关于Spin优雅退出 #977

Closed
guaidashu opened this issue Oct 20, 2023 · 1 comment
Closed

关于Spin优雅退出 #977

guaidashu opened this issue Oct 20, 2023 · 1 comment
Labels
invalid issue invalid issue (not related to Hertz or described in document or not enough information provided)

Comments

@guaidashu
Copy link

优雅退出,我觉得除了让已经在执行的请求继续执行完毕再结束整个进程外,还可以自定义要关闭的第三方组件或其他操作,看了下hertz.go文件的,signalWaiter可以自定义,这样雀食可以自己做个。

但其实不如直接让Spin可以接收一个Close方法用于用户自定义 结束后要做的操作,我这种懒人就懒得去自定义个signalWaiter了, 目前没看到这个相关的,也或许是已经有了但我没看完,狗头保命。

@github-actions github-actions bot added the invalid issue invalid issue (not related to Hertz or described in document or not enough information provided) label Oct 20, 2023
@li-jin-gou
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid issue invalid issue (not related to Hertz or described in document or not enough information provided)
Development

No branches or pull requests

2 participants