You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: extract health checking into HealthProvider interface
Extract device health checking logic into a dedicated HealthProvider
interface with proper lifecycle management using WaitGroups and context.
- Add HealthProvider interface (Start/Stop/Health methods)
- Implement nvmlHealthProvider with WaitGroup coordination
- Update ResourceManager to return HealthProvider instead of CheckHealth
- Update device plugin to use HealthProvider
- Add no-op implementation for Tegra devices
This refactoring improves code modularity and testability without
changing existing behavior. Prepares foundation for future device
recovery features.
Signed-off-by: Carlos Eduardo Arango Gutierrez <[email protected]>
0 commit comments