After sanic server start, I need to get some basic/update information from some other server. I use aiohttp to make a post to some server, but sometimes it raises because of some net problem. Them sanic server came into a state like Fake Death. It is in Up state checking from my supervisor. But no request could be sent to the sanic server. And supervisor cannot restart it because it’s Up.
- I tried exit(), quit(), sys.exit() when Exception during “after server start”. Nothing works, in supervisor the sanic server is still Up.
- I tried to use os.kill(), then it works!
Why sanic server won’t reload itself when raise in “after_server_start”?