Hey, when egressing a call I notice that it tries ...
# ask-ai
c
Hey, when egressing a call I notice that it tries to do it multiple times, so it's eating up my quota and concurrent egress sessions. All I have done is called a room egress.
t
Thanks for reaching out, Sebastian. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hey there! Just a quick heads-up about LiveKit egress — it has built-in retry logic that might try a few times if something goes wrong, like network hiccups or resource limits. This can use up your quota and concurrent sessions faster than you'd expect. To keep things running smoothly, here are some friendly tips: • When you’re done, stop the egress manually using the stop egress API. • After your sessions wrap up, delete the room to automatically stop egress and free up resources. • Keep an eye on egress status with webhook events so you can catch and handle any retries or limits. • Remember the time limits for egress — like 3 hours for file output and 12 hours for streaming. The best way to avoid any unwanted egress consumption is to clean up properly by deleting rooms once calls end. If you want, I’m here to help you through any of these steps — just let me know! Sources: rpc/egress_client.go | Quotas and limits | LiveKit Docs | Quotas and limits | LiveKit Docs
c
All I'm doing is recording the call before the await ctx.connect - nothing special.
t
Hey! It’s best to start recording before
await ctx.connect()
in LiveKit. This way, the recording setup is all set when the agent joins the room and starts publishing tracks. Don’t worry, this won’t cause multiple egress attempts. If you’re still seeing multiple egress attempts, it could be due to other things like retry logic for recoverable errors. Feel free to share more about your setup or ask if you want to dig into this together—I’m here to help!