Skip to content

Conversation

taylorsilva
Copy link
Member

Changes proposed by this PR

Makes process killing concurrent by launching Kill operations in separate goroutines. The buffered error channel ensures we don't block goroutines while waiting for errors to be processed. Returns on first error to maintain original behavior. Each Kill operation executes independently, allowing multiple processes to be killed simultaneously while still respecting grace periods and proper error handling.

Release Note

  • Worker runtime: make process killing concurrent for faster container cleanup

@taylorsilva taylorsilva requested a review from a team as a code owner February 26, 2025 01:30
Makes process killing concurrent by launching Kill operations in
separate goroutines. The buffered error channel ensures we don't block
goroutines while waiting for errors to be processed. Returns on first
error to maintain original behavior. Each Kill operation executes
independently, allowing multiple processes to be killed simultaneously
while still respecting grace periods and proper error handling.

Signed-off-by: Mathias Bogaert <mathias.bogaert@gmail.com>
Co-authored-by: Taylor Silva <dev@taydev.net>
@taylorsilva taylorsilva force-pushed the runtime-kill-concurrent branch from 82be04a to ef53725 Compare February 26, 2025 02:19
@taylorsilva taylorsilva merged commit 8d5063f into master Feb 26, 2025
11 checks passed
@taylorsilva taylorsilva deleted the runtime-kill-concurrent branch February 26, 2025 03:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants