Hi, on the agents dashboard I see this. I already ...
# agents
c
Hi, on the agents dashboard I see this. I already deployed my agent numerous times (just have not destroyed it before). Is it necessary to destroy and redeploy the agent? I am worried about destroying an agent because well I already have people actively using my agent. @refined-appointment-81829
r
See here for full details: https://docs.livekit.io/agents/ops/deployment/#deploy Summary: > LiveKit Cloud builds a container image that includes your agent code. The new version is pushed to production using a rolling deployment strategy. The rolling deployment allows new instances to serve new sessions, while existing instances are given up to 1 hour to complete active sessions. This ensures your new version is deployed without user interruptions or service downtime.
c
I’m still not sure.. should I delete my agent and redeploy or not? It’s a bit scary.
r
What is scary?
Any calls that are currently "live" will continue for up to one hour when you deploy a new version. The "existing" calls continue on the "old" previous version.
c
But this agent will get destroyed completely
Because new calls are being made basically every few minutes
And the calls are central to my product. I’m just worried that the deploying won’t work for some reason if I destroy
r
I guess I don't know what you mean by
destroy
c
Lk agent destroy
I assume that’s how I destroy the agent anyways. That’s what the above warning message says on the LiveKit dashboard
👍🏼 1
e
heya @cuddly-cartoon-47334 this is just a warning for now, we'd like to try and keep cloud agents up to date with the latest sdk versions, but understand that takes time. we aren't taking any action currently on this. And we'll be sure to add bright banners and inform people if/when we change that.
for upgrade purposes, you could create a new agent and then destroy the old one after, as Chris mentioned the old one will continue for up to 60m as long as there are connections to it
c
Okay thanks. If I destroy the agent I would just redeploy with lk agent deploy and this would cause no problems right?
Ok so I trigger a call to my Livekit agent via sip and it seems to get automatically tied to the only agent running. Is there not a way to specify which agent to run?
e
if the agent isn't named then the job will get load balanced to the registered agents. i think there is some preference to pack the jobs onto servers efficiently. if you want to use explicit dispatch you can name the agents and then dispatch them that way https://docs.livekit.io/agents/worker/agent-dispatch/#explicit
👍 1