How can I run some code after server started?

I want to send a message to an admin user when rasa server is restarted, so I want to know how to detect when server finishes loading.

I was thinking to send this notification as an external message using the trigger_intent API call, but I’m not sure where to do this code as I can’t find a way to detect correctly if server already started or not

Any suggestions?


Hey @dimirc

Assuming you mean Rasa Open Source, you can use this endpoint to check if the server started.