How to make subprocess.popen know the rasa server has started

How to make subprocess.popen know the rasa server has started like this link

Hi @dungpv,

Not sure what you want to accomplish here, but doesn’t replacing the command in the run.py of the answer work? e.g.

p = subprocess.Popen(['rasa', 'run'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

If I only do like you, I don’t know when the rasa server was started because I need to notify the user when server rasa start

I have a way to keep sending requests to the server for a period of time, when rasa start stops asking to the server but this way seems to be bad so I want to consult another way.

@MetcalfeTom

Have you found a solution ? I want to accomplish the same but I am stuck