API¶
The PublishingMixin adds RabbitMQ publishing capabilities to a request handler, with methods to speed the development of publishing RabbitMQ messages.
Configured using the following environment variables:
AMQP_URL
- The AMQP URL to connect to.AMQP_TIMEOUT
- The optional maximum time to wait for a bad stateto resolve before treating the failure as persistent.
AMQP_RECONNECT_DELAY
- The optional time in seconds to wait before- reconnecting on connection failure.
AMQP_CONNECTION_ATTEMPTS
- The optional number of connection- attempts to make before giving up.