Skip to content

fix: allow agent containers to drain on sigterm - #69

Merged
chenghao-mou merged 1 commit into
mainfrom
chenghao/fix/AGT-3581-container-sigterm
Sep 25, 2026
Merged

chenghao-mou merged 1 commit into
mainfrom
chenghao/fix/AGT-3581-container-sigterm

Conversation

@chenghao-mou

Copy link
Copy Markdown
Contributor

On SIGTERM, pnpm start exits before the agent receives the signal, cutting active calls during container shutdown. Run Node as PID 1 so the SDK can drain jobs before exiting.

Adopts @karlsonlee-livekit's diagnosis and direct-Node fix from AGT-3581. A Docker check with a synthetic worker completed a 10-second drain. The full application image was not built.

Addresses AGT-3581.

Initial prompt and agent context

Model: GPT-6 Astra

Can you take a look at AGT3581?

we also have a node starter repo I think

okay, create PRs please

Run Node as PID 1 so SIGTERM reaches the agent before container shutdown.

Co-authored-by: Karlson Lee <karlson.lee@livekit.io>
@chenghao-mou
chenghao-mou merged commit 57543cf into main Sep 25, 2026
5 checks passed
@chenghao-mou
chenghao-mou deleted the chenghao/fix/AGT-3581-container-sigterm branch September 25, 2026 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants