pynenc_rabbitmq.broker.rabbitmq_broker¶
Module Contents¶
Classes¶
A RabbitMq-based implementation of the broker for cross-process coordination. |
API¶
- class pynenc_rabbitmq.broker.rabbitmq_broker.RabbitMqBroker(app: pynenc.app.Pynenc)[source]¶
Bases:
pynenc.broker.base_broker.BaseBrokerA RabbitMq-based implementation of the broker for cross-process coordination.
Uses RabbitMq queues for cross-process message coordination and implements all required abstract methods from BaseBroker. Connection retry with exponential backoff is handled automatically at the queue manager level.
Initialization
- _message_queue() pynenc_rabbitmq.util.rabbitmq_queue_mng.QueueManager¶
Get the message queue manager.
- send_message(invocation_id: pynenc.identifiers.invocation_id.InvocationId) None[source]¶
Send a message (invocation) to the queue.
- route_invocation(invocation_id: pynenc.identifiers.invocation_id.InvocationId) None[source]¶
Route a single invocation by sending it to the message queue.
- route_invocations(invocation_ids: list[pynenc.identifiers.invocation_id.InvocationId]) None[source]¶
Route multiple invocations by sending them to the message queue.