can job_ids be reused?
# ask-ai
i
can job_ids be reused?
t
Thanks for reaching out, Ed. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Regarding job_ids: No — job IDs are not reused. Each job in LiveKit Agents gets a unique identifier at creation so every job (e.g., a session or conversation in a room) can be tracked, monitored, and logged without ambiguity. Reusing IDs would cause confusion in state management and session tracking. Sources: Job lifecycle | LiveKit docs | Agent server | LiveKit docs
i
will livekit automatically redispatch an agent to a room if a process fails abnormally (like with a code -10) and participants are still in that room? because what im seeing is that a process failed with a code -10 and then another job was dispatched to the same job id and room
t
You're seeing unexpected behavior—LiveKit does not automatically redispatch an agent to the same room or reuse a
job_id
after an agent process crashes. I’m responding to your observation about a process exiting with code -10 and then another job appearing for the same
job_id
and room. Can you provide: • The exact
job_id
you saw (copy/paste from logs). • Timestamps for the crash and the subsequent dispatch. • Relevant log snippets showing the crash exit and the new dispatch (including any API calls or token-generation entries). • Whether you have any orchestration/retry logic (Kubernetes liveness probes, supervisors, or external systems) that might re-dispatch automatically. With those logs I can help determine whether this is: • a log/ID misattribution, • a token/API-triggered re-dispatch, • external retry logic in your infra, or • a potential bug to investigate further. Sources: Job lifecycle | LiveKit docs | Agents Framework | livekit/livekit_composite | DeepWiki | Agent dispatch | LiveKit docs
i
the job_id is AJ_oVNCQaFHeeFF
t
Thanks — I’m following up about the
job_id
AJ_oVNCQaFHeeFF. Please share the following so I can investigate why a new job appeared for that same ID after the process exited with code -10: • Exact timestamps (UTC) for the crash/exit and for when the new job was dispatched. • Agent server logs around those times (lines showing the exit code -10 and any dispatch or job-create entries). • Any API request logs that might show an explicit dispatch call or token generation at that time. • Whether you have orchestration/restart logic (Kubernetes restartPolicy, supervisors, or custom watchers) that might trigger re-dispatch. • The room name/ID and which participant(s) were present when the crash occurred. Once you provide those pieces I’ll help determine whether this is log misattribution, an external retry/dispatch, token-based re-dispatch, or something that needs deeper investigation. Sources: Job lifecycle | LiveKit docs | Deploying to custom environments | LiveKit docs | An open source stack for real-time multimodal AI