{"level": "ERROR", "name": "livekit.agents", "mess...
# ask-ai
p
{"level": "ERROR", "name": "livekit.agents", "message": "process is unresponsive, killing process", "pid": 43, "job_id": "AJ_JuGJ94nkJGjx", "room_id": "RM_ZKbHihEGEy68", "timestamp": "2025-12-17T070128.611757+00:00"} {"level": "INFO", "name": "livekit.agents", "message": "killing process", "pid": 43, "job_id": "AJ_JuGJ94nkJGjx", "room_id": "RM_ZKbHihEGEy68", "timestamp": "2025-12-17T070128.611957+00:00"} {"level": "INFO", "name": "livekit.agents", "message": "sending SIGUSR1 signal to process", "pid": 43, "job_id": "AJ_JuGJ94nkJGjx", "room_id": "RM_ZKbHihEGEy68", "timestamp": "2025-12-17T070128.612031+00:00"} {"level": "ERROR", "name": "livekit.agents", "message": "process exited with non-zero exit code -10", "pid": 43, "job_id": "AJ_JuGJ94nkJGjx", "room_id": "RM_ZKbHihEGEy68", "timestamp": "2025-12-17T070128.640460+00:00"} {"level": "INFO", "name": "livekit.agents", "message": "worker is below capacity, marking as available", "load": 0.5088478272999987, "threshold": 0.7, "timestamp": "2025-12-17T070130.986289+00:00"}. -- I am seeing this in my agent running in aws eks - using polly and transcribe - when calling a tool (simple rag) - why
t
Thanks for reaching out, mithun. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're seeing the agent watchdog kill the job because the tool call (simple RAG) made the agent process unresponsive. The logs show the agent sent SIGUSR1 and then the process exited with code -10 (SIGUSR1), which means the watchdog attempted to get a stack dump and then force-killed the hung worker. What likely caused it (given you're using Polly + Transcribe with a RAG tool): • The RAG tool performed a synchronous/blocking operation (blocking network call, blocking file I/O, or CPU-heavy work) that prevented the agent from responding to health pings. • Long external request latency (embedding/vector DB, external APIs) without timeouts or retries. • Pod resource constraints or throttling in EKS increased execution time so the agent missed health checks. Immediate actions to try • Make the RAG tool fully asynchronous (use async HTTP client,
async/await
) so it doesn't block the event loop. • Add explicit timeouts and retry logic around external calls (e.g.,
asyncio.wait_for(..., timeout=10)
). • Avoid blocking calls like
requests
,
time.sleep()
, or heavy synchronous CPU tasks inside the tool — move them to background tasks if needed. • Increase pod CPU/memory limits in EKS (or use non-burstable instances) to avoid throttling. • Instrument and log durations inside the tool (start/end timestamps) to identify slow steps. Diagnostics I can help with • Which parts of your RAG workflow are synchronous (embedding calls, DB queries, local inference)? • Share the tool code snippet (especially external call patterns) and your pod resource limits — I can point out exact changes to make it non-blocking. • Frequency of this error and whether it correlates with high load or specific queries. Would you like me to review the RAG tool code or your pod resource config next? Sources: Troubleshooting Latency and Timeout Errors with Turn Detection on AWS | External data and RAG | LiveKit Docs | Tool definition and use | LiveKit docs