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

Task进程如何平滑重启 #550

Open
dongyule opened this issue Jun 16, 2022 · 1 comment
Open

Task进程如何平滑重启 #550

dongyule opened this issue Jun 16, 2022 · 1 comment

Comments

@dongyule
Copy link

dongyule commented Jun 16, 2022

https://wiki.swoole.com/#/server/methods?id=reload
# 仅重启task进程
kill -USR2 主进程PID

根据官方提示无法平滑重启Task进程、看源码应该是easyswoole重新实现了Task,那如何平滑重启呢。

@XueSiLf
Copy link
Collaborator

XueSiLf commented Jul 5, 2022

使用这个命令即可,

php easyswoole process kill --pid=PID

默认是优雅退出 然后由主进程自动重新拉起一个进程。

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

2 participants