Skip to main content

Module timeout_utils

Module timeout_utils 

Source
Expand description

Retry + timeout helpers (with_storage_timeout, with_mcp_timeout). Timeout utilities with exponential backoff retry support

Enums§

TimeoutError
Timeout error for operations that exceed their time limit

Constants§

DEFAULT_ENTITY_PROCESSING_TIMEOUT
Default timeout for entity processing (5 seconds)
DEFAULT_MCP_TIMEOUT
Default timeout for MCP operations (120 seconds / 2 minutes) Increased to handle large text processing (entity extraction, vectorization)
DEFAULT_STORAGE_TIMEOUT
Default timeout for storage operations (10 seconds)

Functions§

with_entity_timeout
Execute entity processing with default timeout
with_mcp_timeout
Execute an MCP operation with default timeout
with_retry_timeout
Retry an operation with exponential backoff and timeout
with_storage_timeout
Execute a storage operation with default timeout
with_timeout
Execute an async operation with a timeout wrapper