Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid deadlock on context cancel #6

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

smira
Copy link
Member

@smira smira commented Dec 25, 2024

As the worker exits on context cancel, make sure we stop distributing tasks if the context is canceled.

As the worker exits on context cancel, make sure we stop distributing
tasks if the context is canceled.

Signed-off-by: Andrey Smirnov <[email protected]>
@@ -62,7 +62,7 @@ func CreateSupportBundle(ctx context.Context, options *bundle.Options, cols ...*
}

for _, col := range cols {
tasks <- col
channel.SendWithContext(ctx, tasks, col)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is the fix itself

@smira
Copy link
Member Author

smira commented Dec 25, 2024

/m

@talos-bot talos-bot merged commit 0f784bd into siderolabs:main Dec 25, 2024
14 checks passed
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.

4 participants