The source project of this merge request has been removed.
Fix goroutine variable capture in shutdownUsedExecutorProviders
What does this MR do?
Fixes goroutine closure capture in shutdownUsedExecutorProviders by passing the executor provider as a parameter.
Why was this needed?
The previous implementation captured the loop variable, which can lead to incorrect provider instances being used in goroutines.
What’s the best way to test this MR?
- Run
go test ./...
Impact
Ensures each executor provider is shut down correctly and avoids potential concurrency issues.