Livekit run as supervisior in frappe app

Hi,

I’ve successfully developed and tested a real-time voice interview assistant using LiveKit agents, Deepgram, and Mistral, integrated with my Frappe application. I’ve already verified the setup in an AWS environment where the script runs as a persistent background service using Supervisor. It has been working reliably there, continuously handling real-time voice sessions and resume processing.

Now, I would like to deploy this same script on Frappe Cloud in a way that it runs 24/7, just like it does with Supervisor on AWS. The script is part of a custom Frappe app and uses async routines with livekit.agents.cli.run_app as the entrypoint.

Specifically, I’m requesting guidance or support for the following:

  1. Running the LiveKit script persistently (i.e., as a background service) on Frappe Cloud.
  2. Using Supervisor or any equivalent method that is compatible with the Frappe Cloud infrastructure.
  3. Auto-restarting the service in case of failure.
  4. Accessing logs/output from the service (for debugging or monitoring).
  5. If necessary, configuring the process through Procfile, custom workers, or any recommended approach.

Since I’ve already validated this setup on AWS using Supervisor, I’m confident in the script’s behavior and just need help adapting it to the Frappe Cloud environment.

Please let me know the best way to proceed or if there’s any official method to register and manage such a persistent worker process on Frappe Cloud.

Thanks in advance for your help!

You probably should reach out to frappe cloud support for this. I can’t imagine they’d want you running arbitrary additional services on shared servers, but it might be possible on their dedicated server plans.