limited-dawn-94551
10/29/2025, 9:42 PMtall-airline-16756
10/29/2025, 9:42 PMtall-airline-16756
10/29/2025, 9:42 PMaclose() coroutine to gracefully shut down the worker. Here's a simple example:
await worker.aclose()
• In Node.js/TypeScript: The close() method is your go-to. For instance:
await worker.close();
These approaches help make sure everything wraps up nicely by finishing active tasks and closing internal processes smoothly. If you'd like to let current jobs finish before stopping, you might find the drain() method (in Node.js/TypeScript) or the drain_timeout option (in Python) really helpful.
I'm here if you want to chat more or need any extra help—just let me know!
Sources: livekit-agents/livekit/agents/worker.py | agents/src/worker.ts | Job lifecycle | LiveKit Docslimited-dawn-94551
10/29/2025, 9:42 PMtall-airline-16756
10/29/2025, 9:43 PMagent_name and worker_type. While location isn’t included by default, you can customize it to suit your needs.
• Log environment details: You might consider modifying your worker to log or expose details like its hostname, IP, or cloud metadata (such as an AWS instance ID) through environment variables or a custom HTTP endpoint. This can be really handy for tracking.
• Use infrastructure monitoring: If your worker is running in Kubernetes, Docker, or a cloud VM, tools like kubectl, docker inspect, or your cloud provider’s console can help you pinpoint where your instance lives.
• LiveKit Cloud dashboard: If you’re using LiveKit Cloud, the dashboard shows active workers and their load, which might give you clues about their location.
If you’d like, I’m here to help guide you through setting up a custom endpoint or using a particular monitoring tool to find your worker. Just let me know how you’d like to proceed!
Sources: LiveKit Docs | examples/src/custom_text_handler.ts | examples/avatar_agents/bithuman/README.md | Deploying to custom environments | LiveKit Docs