How to programmatically run ans stop a rasa server

Hi all,

I want to programmatically start and shut down a Rasa model server. I saw the run function in, and I think I can start a server using that, but how do I shut it down. Alternatively, if there is a better way of starting the server through code, that’ll also help

Hi @raghuvanshraj,

We just look for the keyboard interruption command Ctrl+C to shut down servers. From the software perspective there ought not to be a reason to shut down the server - we provide all methods for training, uploading data, replacing models etc.

If you want to do shut down the server within Python, you could create some kind of Exception class and raise it. Then you could handle it with some kind of shut down function.