is there anyway to know if the :LiveKit worker to ...
# ask-ai
b
is there anyway to know if the :LiveKit worker to pick up the dispatch is successful or not?
✅ 1
t
Thanks for reaching out, Utkarsh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — regarding whether a LiveKit worker picked up a dispatch: • A worker picking up a job is confirmed when its job entrypoint runs (the `entry`/`entrypoint` function receives a
JobContext
with the
room
). That execution is the definitive success signal. • You can also confirm via logs: startup logs like "registered worker" show availability, and entrypoint logs show the job was accepted. Use
agent logs
or
agent tail
to watch these. • Operational checks: the agent exposes a health endpoint (default 0.0.0.0:8081 returning 200 when connected) and `lk agent status`/CLI commands show agent health and active jobs. Which method would you prefer to use (logs, health checks/CLI, or programmatic confirmation inside the entrypoint)? I can give exact commands/examples for that option. Sources: Server lifecycle | LiveKit Documentation | Build Your First AI Voice Agent in Python: Complete Tutorial | LiveKit | Server options | LiveKit Documentation, with interactive elements
b
can we know via create_dispatch?
t
Short answer: No —
create_dispatch
only confirms the dispatch was created on the server; it does not indicate a worker has accepted or started the job. What you can use to detect pickup: • Watch the room for the agent participant joining (participant join events/webhooks). • Check agent logs (e.g.,
agent logs
/
agent tail
) for the entrypoint running. • Use the agent health/status (
lk agent status
and the health endpoint) to confirm available workers and active jobs. • Emit or listen for a custom signal from your worker inside the job
entry
to confirm acceptance (the worker running
entry
with a
JobContext
is the definitive confirmation). Which of these would you like exact commands/examples for (logs, webhooks/room events, CLI health checks, or a worker-side confirmation pattern)? Sources: Agent dispatch | LiveKit Documentation | Server options | LiveKit Documentation | Deployment reliability on LiveKit Cloud | LiveKit | Server lifecycle | LiveKit Documentation, with interactive elements