I can see my agent is registered with LiveKit clou...
# ask-ai
c
I can see my agent is registered with LiveKit cloud and ready to respond to a call. But when I call, it often takes 30+ seconds before my local code receives the job request. Why would it take so long for my agent to get requested?
g
It seems likely that the delay in your agent receiving a job request could be due to network latency or server load balancing issues. According to the LiveKit documentation, the dispatch system is optimized for low latency and should assign an agent to a room in under 150ms. However, if there are network issues or if the server is under heavy load, this could cause delays. Additionally, if your agent is set with an
agent_name
in
WorkerOptions
, it will not be automatically dispatched to new rooms, which could also contribute to delays if explicit dispatch is not correctly configured. You might want to check if your agent is set up for automatic dispatch or if there are any network issues affecting the connection. Would you like more detailed troubleshooting steps or information on configuring explicit dispatch? Sources: - LiveKit documentation 👍 0 button 👎 0 button 💡 Hint: Mention @runllm in the thread for followups.
c
@millions-hair-24956 I just ran my same code again (for like the 10th time) and it now responds with no delay. I'm so lost