Draft: Workhorse: add context cancellation and goroutine cleanup
What does this MR do and why?
Workhorse: add context cancellation and goroutine cleanup
Problem
Goroutines in Execute() method were not respecting context cancellation, leading to potential resource leaks and hanging operations.
Solution
- Use cancellable context to signal goroutine termination
- Check context.Done() in goroutine loops to prevent blocking
References
Screenshots or screen recordings
| Before | After |
|---|---|
How to set up and validate locally
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.