Skip to content

executeUpdateSetsInParallel doesn't check context cancellation #4806

@e-gineer

Description

@e-gineer

Description

The executeUpdateSetsInParallel method spawns multiple goroutines but doesn't check if the context is cancelled. Goroutines continue running until completion, wasting resources.

Severity

LOW - Resource inefficiency

Test Reference

Test: TestRefreshConnectionState_ContextCancellation in pkg/connection/refresh_connections_state_test.go:463 (skipped)

Suggested Fix

Check context cancellation in spawned goroutines.

Related Code

  • pkg/connection/refresh_connections_state.go:499-568

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions