How can I verify complete retirement of a LiveKit Cloud agent version?

Hi LiveKit team,

Your deployment reliability guide recommends collecting per-version session counts, worker/container stop events and exit reasons.

What supported read-only interface exposes complete worker stop events and exit reasons for a selected agent version?

We need to establish:

  • Every worker belonging to that version is accounted for, including draining or disconnected instances.
  • No old worker remains able to accept or execute jobs or re-register.
  • Shutdown outcomes distinguish normal completion, forced termination, crashes and unknown outcomes.
  • The evidence’s timestamps, retention and completeness limitations are understood.

Is this available through the dashboard, CLI or an API, or does it require LiveKit Support? Can it be obtained without deploying, restarting or changing configuration?

We reviewed the discussions about slow draining and workers re-registering after shutdown. We are not reporting those symptoms; we are asking how to verify retirement reliably.

We understand that process retirement does not prove application database commits or export settlement. We will verify those separately.

Please clarify whether normal worker exit establishes shutdown-callback completion, and whether missing stop events represent an unknown outcome.

I can provide identifiers privately if needed. Please advise the appropriate private channel rather than requesting them in this public thread.

Thank you.

Hi, the ‘deployment reliability guide’ is here:

and the section you are referring to is at the end, “What to collect during incidents”, i.e. something is going wrong draining your sessions.

I notice you are using LiveKit cloud to host your agents, so you would not be able to collect ‘worker/container stop events and exit reasons’, nor would you have ready access to ‘per-version active session counts over time’. These are stats that somebody self-hosting their agents would have access to, something which was far more common when the blog was written.

If you had concerns about draining during an upgrade, I recommend running lk agent versionswhich will give you a table showing the different versions of your agent, when it was deployed, whether it is active or draining, etc.