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