curved-gpu-55289
05/21/2026, 5:12 AM1, I retry the dispatch and create a new dispatch repeatedly.
• On the agent worker side, whenever the worker executes successfully or starts responding, I set the Redis flag to 1.
This implementation helped me verify whether the worker actually started and allowed me to dispatch accordingly.
However, now I am facing another issue: sometimes the agent suddenly leaves the meeting even though the session is still active and was not closed.
Case 3
For a more permanent solution, I contacted LiveKit AI support. They suggested replacing the Redis approach with job_status from LiveKit.
I updated both my dispatcher and agent worker code accordingly.
What I observed:
• Sometimes after dispatching, I receive job_status = 2, which indicates the agent is running correctly.
• However, most of the time I receive job_status = 1.
When the status remains 1, the agent does not start the job, and because of that I lose the meeting conversation data.
Example logs:
Room ensured: 0u4r9n
Found existing dispatch: AD_8Chk8zceLc7t
Creating NEW dispatch for room 0u4r9n
Dispatch created: AD_X2XvFEEeMZeL
Poll 5 → Status: 1
Could you please help me understand what I might be doing wrong and suggest the correct permanent solution for handling this issue?
Thank you.tall-airline-16756
05/21/2026, 5:12 AM