valkey
Valkey (Redis) client for real-time status updates via pub/sub.
Publishes document status updates to Redis channels for real-time UI delivery.
Channel format: doc:status:{organization_id}:{document_id}
Classes
ValkeyClient
Client for publishing status updates to Valkey (Redis) pub/sub.
Constructor:
def __init__(self, config: Any) -> None
Methods
publish_status
def publish_status(self, organization_id: str, document_id: str, status_data: dict[str, Any]) -> None
Publish document status update to Valkey channel.
Args: organization_id: Organization ID document_id: Document ID status_data: Dictionary of fields to update