MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / initialize_queue

Function initialize_queue

methods/MIRIX/mirix/queue/__init__.py:42–53  ·  view source on GitHub ↗

Initialize the queue with an optional server instance. The queue worker will invoke server.send_messages() when processing messages. This should be called during application startup (e.g., in FastAPI lifespan). Args: server: Server instance for processing messages

(server=None)

Source from the content-addressed store, hash-verified

40
41
42async def initialize_queue(server=None) -> None:
43 """
44 Initialize the queue with an optional server instance.
45
46 The queue worker will invoke server.send_messages() when processing messages.
47 This should be called during application startup (e.g., in FastAPI lifespan).
48
49 Args:
50 server: Server instance for processing messages
51 """
52 await _manager.initialize(server=server)
53 logger.info("Queue initialized with server instance")
54
55
56async def save(message: QueueMessage) -> None:

Calls 2

infoMethod · 0.65
initializeMethod · 0.45