Currently there is no easy way to gracefully shutdown the app when the worker exits.
As a real world use case, I need to register the web-server app with another system so that requests will be routed to it on start (__rsgi_init__), and I need to de-register it on exit. If it's not de-registered, there will be failed requests.
Currently there is no easy way to gracefully shutdown the app when the worker exits.
As a real world use case, I need to register the web-server app with another system so that requests will be routed to it on start (
__rsgi_init__
), and I need to de-register it on exit. If it's not de-registered, there will be failed requests.