-
[NA] [BE] Address remaining comments from Python Evaluation retry PR (#3210)
发布于
2025-09-05 14:50:12 +00:00 - NA: Add retry logic for Python online evaluation metrics
This PR enhances the Python evaluator service with robust retry mechanisms to handle transient network failures and improve reliability of online evaluation metrics.
Key changes:
- Added RetriableHttpClient with configurable retry policies
- Enhanced PythonEvaluatorService with retry capabilities
- Added PythonEvaluatorConfig for retry configuration
- Added RetryUtils with comprehensive retry handling
- Updated configuration to support retry settings
- Added comprehensive tests for retry functionality
The retry logic handles:
- Connection timeouts and socket exceptions
- Configurable max attempts and backoff delays
- Proper error propagation when retries are exhausted
- Support for both sync and async retry patterns
- Fix comments
下载附件