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

Request::Context更新问题 #2

Closed
jm-observer opened this issue Mar 10, 2022 · 4 comments
Closed

Request::Context更新问题 #2

jm-observer opened this issue Mar 10, 2022 · 4 comments

Comments

@jm-observer
Copy link

你好!假设Request::Context是配置文件内容,当配置文件更新时,如何更新Worker的Context?好像也没办法手动停止Worker?

@losfair
Copy link
Owner

losfair commented Mar 10, 2022

#3 添加了手动停止 worker 的接口。

更新 context 的方法是重启 worker,比如 Blueboat 就是把同应用的不同版本视为两个不同 worker 处理的: https://github.com/losfair/blueboat/blob/74e71acb78c25dd7cd9a090cf3d409ac909e81e4/src/server.rs#L760

@jm-observer
Copy link
Author

#3 添加了手动停止 worker 的接口。

更新 context 的方法是重启 worker,比如 Blueboat 就是把同应用的不同版本视为两个不同 worker 处理的: https://github.com/losfair/blueboat/blob/74e71acb78c25dd7cd9a090cf3d409ac909e81e4/src/server.rs#L760

你好,发布到crate吧

@jm-observer
Copy link
Author

你好,啥时候将手动停止api的版本发布到crate呢?

@losfair
Copy link
Owner

losfair commented Mar 17, 2022

你好,

0.1.1 版本发布到 crates.io 了。

@losfair losfair closed this as completed Mar 17, 2022
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