-
-
Notifications
You must be signed in to change notification settings - Fork 413
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
[💡 FEATURE REQUEST]: after_init
phase command
#1554
[💡 FEATURE REQUEST]: after_init
phase command
#1554
Comments
Done, in testing now, will be in the |
The implementation is a bit quirky as The initial proposal was supposed to be like this:
It is a single-use command that only fires once. Anything else could be done by polling healthz. I was trying to adopt this feature like this: process manager pre-opens a notification file descriptor and then expects the RR process to write to that FD and then close it. I verified that it works, but only once. I then get two more log lines: The goal is being able to mark container ready without resorting to polling. |
@rauanmayemir |
If I wanted a notification from a plugin, I guess I would have set e.g This results in a confusion. You specify I was the one requesting the feature, but I don't know how I can use this or what for. 😄 |
Thus, I would suggest you to describe your request in a new FR. |
To re-quote the original request: It would be nice to have an after_init section similar to server.on_init that would run after the server is initialized and ready to receive requests. It's basically a readiness notification that would allow process manager not to poll I was confused thinking 'server' encompasses everything, not just a plugin called 'server'. |
Plugin
Server
I have an idea!
It would be nice to have an
after_init
section similar toserver.on_init
that would run after the server is initialized and ready to receive requests.Extra nice option: allowing to have the same section for each plugin (unless it's meaningless because
server.after_init
would run after all the plugins are done loading). E.g: I can have this command forhttp
orgrpc
, so that I could start accepting requests without waiting forjobs
plugin.The text was updated successfully, but these errors were encountered: