Skip to content

fix: reap exited function workers - #6991

Open
omercnet wants to merge 1 commit into
anomalyco:devfrom
omercnet:fix/6971-reap-workers
Open

fix: reap exited function workers#6991
omercnet wants to merge 1 commit into
anomalyco:devfrom
omercnet:fix/6971-reap-workers

Conversation

@omercnet

Copy link
Copy Markdown

Summary

  • centralize runtime worker process ownership so every started worker is reaped exactly once
  • make worker stop, cleanup, and context cancellation share the managed lifecycle
  • close worker log pipes after a bounded idle drain when descendants inherit stdout or stderr

Closes #6971

Verification

  • go test ./pkg/process ./pkg/runtime
  • go test -race ./pkg/process ./pkg/runtime
  • bun run build:platform
  • bun run build:cli
  • bun run test:cli

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.

sst dev never reaps exited function workers — zombies accumulate for the lifetime of the process

1 participant