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

如何优雅关闭任务 #138

Closed
tauchieftain opened this issue Jan 4, 2024 · 2 comments
Closed

如何优雅关闭任务 #138

tauchieftain opened this issue Jan 4, 2024 · 2 comments

Comments

@tauchieftain
Copy link

Describe the bug
A clear and concise description of what the bug is.

我使用supervisor管理go项目, 每次通过supervisorctl restart goproject时就会产生僵尸进程, 这个如何处理?

@tauchieftain
Copy link
Author

tauchieftain commented Jan 4, 2024

常驻任务会变成僵尸进程, 应该怎么接收supervisor重启信号,并优雅关闭常驻任务?

@tauchieftain
Copy link
Author

新启一个协程监听term信号,主动释放资源

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

No branches or pull requests

1 participant