Open jonboiser opened 3 years ago
I don't recall having seen errors, but I always have to type Ctrl+C twice, sometimes even 3 times, for the server to actually stop.
Python 3.6.9 Ubuntu 18.04.5
I've done some investigation of this, as I was confused, and it's not to do with the Python server itself, but because it's being run from yarn
. When the same commands are run from command line, it works fine and waits until everything has shut down before exiting to the terminal, for some reason yarn
manages to snatch the ctrl-c and interpret it, dropping out to the terminal, while the dev server is still handling it.
Flagging as a regression because yarn run devserver
previously shut down cleanly
update: re-opening #8465 and removing regression label because they seem to be different issues
Observed behavior
yarn run devserver-hot
kolibri start
)Note: This might depend on when Ctrl-C is pressed. Looking into this. Sometimes Ctrl-C will cause cherrypy to raise an error, sometimes not. But the
INFO
logs consistently happen after the prompt is restored.Errors and logs
Logs start at
^C
(Ctrl-C)Then after the prompt
Expected behavior
Turning off the dev-server raises no errors, and is more similar to running the production server.
And then a clean prompt appears underneath
Steps to reproduce
Context
Python 3.6.8 MacOS Running in dev mode