Is shutdown_hook still backward compatible after l...
# ask-ai
c
Is shutdown_hook still backward compatible after livekit agents 1.3.3?
t
Thanks for reaching out, Yousri. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking whether the shutdown_hook remains backward compatible after LiveKit Agents 1.3.3. Yes — the shutdown hook mechanism (
add_shutdown_callback
/
ctx.add_shutdown_callback
) remains backward compatible in LiveKit Agents 1.3.3. You can register shutdown hooks in Python and Node.js; they run after the session shuts down but before the process exits, and the framework waits up to 60 seconds (default) for them to finish. Sources: Job lifecycle | LiveKit docs | Agents (Node.js) | livekit/livekit_composite | DeepWiki