I'm sorry you're encountering the error "not dispatching agent job since no worker is available." This usually means the LiveKit server is having trouble finding an available worker to handle the job. This can happen for a few reasons:
• No workers are registered or connected to the server.
• Workers didn't complete the registration process successfully.
• Workers might be marked as unavailable due to high load or other conditions.
• There could be a mismatch between the agent name in the worker configuration and the dispatch rules.
• All workers might be at full capacity right now.
To help you get this sorted, here are some steps you can check:
1. Make sure your workers are properly registered and connected to the LiveKit server. You can look for "registered worker" messages in your worker logs.
2. Double-check that the agent name in your worker configuration matches what’s set in the dispatch rules.
3. Take a look at the worker load status to ensure they’re not marked unavailable because of high load.
4. Confirm that your workers aren’t facing any network connectivity issues or resource limitations.
5. Review the server logs for any worker registration and job dispatch events to spot any clues.
If you’d like, I’m here to guide you through any of these steps in more detail. Just let me know how I can assist!
Sources:
Troubleshooting & Common Issues | livekit/livekit_composite | DeepWiki |
pkg/agent/worker.go |
livekit-agents/livekit/agents/worker.py |
agents/src/worker.ts |
SIP troubleshooting guide | LiveKit Docs