flowgentic.langGraph.fault_tolerance¶
fault_tolerance
¶
Classes:
| Name | Description |
|---|---|
RetryConfig |
Configuration for retry/backoff and timeouts. |
LangraphToolFaultTolerance |
|
RetryConfig
¶
Bases: BaseModel
Configuration for retry/backoff and timeouts.
Attributes:
| Name | Type | Description |
|---|---|---|
max_attempts |
int
|
Total attempts including the first try. |
base_backoff_sec |
float
|
Base delay used for exponential backoff. |
max_backoff_sec |
float
|
Upper bound for backoff delay. |
jitter |
float
|
Randomization factor [0.0-1.0] applied to backoff. |
timeout_sec |
Optional[float]
|
Per-attempt timeout (None disables timeout). |
retryable_exceptions |
Tuple[type, ...]
|
Tuple of exception classes considered transient. |
raise_on_failure |
bool
|
If True, raise after final failure; otherwise return an error payload. |
LangraphToolFaultTolerance
¶
Methods:
| Name | Description |
|---|---|
retry_async |
Retry a no-arg async call with exponential backoff + jitter and timeout. |
retry_async
async
¶
retry_async(call: Callable[[], Any], config: RetryConfig, name: str) -> Any
Retry a no-arg async call with exponential backoff + jitter and timeout.
Args: call: An async function with no args that performs the operation. config: Retry configuration. name: Identifier for logging/telemetry context.