Room Session not closing properly (Zombie Session)

Hi LiveKit team,

I’m analyzing the sessions data displayed on the LiveKit dashboard and it’s showing two sessions with a duration of 639 minutes and 866 minutes. The sessions are the next ones:

  • RM_pco4rgkuavNV.

  • RM_3raePZehbKzF.

It’s really strange because I’ve not noticed the same for any other session, and I’m limiting the session time over my frontend to 6 minutes so the agent can auto disconnect. I’m using Python with LiveKit and LiveAvatar plugins, what could happened here?

Thank for your support.

:confused: it looks like the participants were in the room all that time, and I also see the agent in there.

Perhaps some edge case affected your 6 minute front end timer.

The more reliable way to implement that timer would be in the agent, start a timer when the sesson starts then call session.shutdown() when the timer expires. Set delete_room_on_close=True to cause the room to be deleted even if participants remain connected.

Hi Darryn,

Okay, then I’ll implement this way in order to prevent it from happening again.

Thank you for your time!