l.s.m.r.RabbitUnreliableSession(RabbitSession) : class documentation

Part of lp.services.messaging.rabbit View In Hierarchy

An "unreliable" RabbitSession.

Unreliable in this case means that certain errors in deferred tasks are silently suppressed. This means that services can continue to function even in the absence of a running and fully functional message queue.

Other types of errors are also caught because we don't want this subsystem to destabilise other parts of Launchpad but we nonetheless record OOPses for these.

XXX: We only suppress MessagingUnavailable for now because we want to monitor this closely before we add more exceptions to the suppressed_errors list. Potential candidates are MessagingException, IOError or amqp.AMQPException.

Method finish See IMessageSession.

Inherited from RabbitSession:

Method __init__ Undocumented
Method is_connected See IMessageSession.
Method connect See IMessageSession.
Method disconnect See IMessageSession.
Method flush See IMessageSession.
Method reset See IMessageSession.
Method defer See IMessageSession.
Method getProducer See IMessageSession.
Method getConsumer See IMessageSession.
def finish(self):
See IMessageSession.

Suppresses errors listed in suppressed_errors. Also suppresses other errors but files an oops report for these.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.