mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
Refa: refine retry gap. (#8773)
### What problem does this PR solve? ### Type of change - [x] Refactoring - [x] Performance Improvement
This commit is contained in:
@ -73,7 +73,7 @@ class Base(ABC):
|
|||||||
|
|
||||||
def _get_delay(self):
|
def _get_delay(self):
|
||||||
"""Calculate retry delay time"""
|
"""Calculate retry delay time"""
|
||||||
return self.base_delay + random.uniform(0, 0.5)
|
return self.base_delay + random.uniform(10, 150)
|
||||||
|
|
||||||
def _classify_error(self, error):
|
def _classify_error(self, error):
|
||||||
"""Classify error based on error message content"""
|
"""Classify error based on error message content"""
|
||||||
|
|||||||
Reference in New Issue
Block a user