big-summer-57969
02/18/2026, 8:24 AMTraceback (most recent call last):
File "/app/.venv/lib/python3.13/site-packages/livekit/agents/worker.py", line 1243, in _job_request_task
await self._request_fnc(job_req)
File "/app/src/main.py", line 918, in request_fnc
await req.accept()
File "/app/.venv/lib/python3.13/site-packages/livekit/agents/job.py", line 798, in accept
await self._on_accept(accept_arguments)
File "/app/.venv/lib/python3.13/site-packages/livekit/agents/worker.py", line 1210, in _on_accept
raise AssignmentTimeoutError() from None
livekit.agents._exceptions.AssignmentTimeoutErrorbig-summer-57969
02/18/2026, 8:28 AM<http://log.info|log.info>(
"✅ Accepting job request",
room=room_name,
load=_JobAwareLoadCalc.current_load,
cpu_load=_JobAwareLoadCalc.cpu_load,
active_job_count=_JobAwareLoadCalc.active_job_count,
job_id=req.id,
dispatch_id=dispatch_id,
)
await req.accept()lively-winter-88668
02/18/2026, 2:23 PMWhen running a stress test on lk cloudMy guess would be you are hitting plan limits during your test. Also bear in mind that the infrastructure on ship / scale is designed for realistic usage scenarios, so if your test is trying to start lots of simultaneous calls, you will experience issues.
big-summer-57969
02/19/2026, 3:36 AMbig-summer-57969
02/19/2026, 3:38 AMAssignmentTimeoutError lk will send another dispatch job and it will be accepted.
But 2-10 times, after AssignmentTimeoutError lk stop dispatching.
I check the rooms, and they dont have any participants or any errors.
await req.accept()big-summer-57969
02/19/2026, 3:38 AMlively-winter-88668
02/19/2026, 10:07 AMI dispatched 200 rooms with an lk agentAre you dispatching rooms simultaneously? Please add a second or two between each dispatch to make it more realistic. There was a similar question in the community recently: https://community.livekit.io/t/agent-join-latency-spikes-at-50-concurrent-users-on-scale-plan/261/8?u=darryncampbell
big-summer-57969
02/20/2026, 6:18 AMasync def request_fnc(req: JobRequest) -> None:
"""Reject job if duplicate dispatch or room already has an agent."""
...
try:
await req.accept()
return
except AssignmentTimeoutError:
# Clean up dedup cache — the job was never actually assigned
if dispatch_id:
_seen_dispatch_ids.pop(dispatch_id, None)
log.error(
"🚨 Assignment timed out — call might be dropped",
room=room_name,
job_id=req.id,
dispatch_id=dispatch_id,
)
return
# Shoud i re-raise the error ? or just return is ok ?lively-winter-88668
02/20/2026, 10:32 AMJust returnCopy code# Shoud i re-raise the error ? or just return is ok ?