After all participants in the room leave, how long...
# ask-ai
f
After all participants in the room leave, how long will it take for the Job to automatically exit? Is there a parameter to specify this?
t
Thanks for reaching out, wang. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding to your question about how long a Job waits to automatically exit after all participants leave, and whether that delay can be configured. • A Job exits when the last non-agent participant leaves the room and the agent session ends shortly after. The job continues until the room is deleted or all participants (including agents) have left. • There is no parameter to set a custom delay for the job to exit. The exit behavior follows the room lifecycle and isn’t controlled by a job-specific timeout. • If you need an immediate shutdown, you can end the session with
session.shutdown()
or delete the room using the RoomService API; both will terminate the job context immediately. Would you like steps for calling
session.shutdown()
or the RoomService API in your environment? Sources: Job lifecycle | LiveKit docs