From aaa387a5b3bdb9bc416690dccef66196c76d373e Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Wed, 30 May 2018 22:38:54 +0100 Subject: RabbitMQ mixin, powered by Kombu (#84) * [RMQ] Add Kombi an an RMQMixin, as well as some constants * [RMQ] Fix example in mixin docstring * Update Pipfile.lock - for some reason, pipenv didn't lock kombu --- pysite/queues.py | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 pysite/queues.py (limited to 'pysite/queues.py') diff --git a/pysite/queues.py b/pysite/queues.py new file mode 100644 index 00000000..7a200208 --- /dev/null +++ b/pysite/queues.py @@ -0,0 +1,5 @@ +from kombu import Queue + +QUEUES = { # RabbitMQ Queue definitions, they'll be declared at gunicorn start time + "bot_events": Queue("bot_events", durable=True) +} -- cgit v1.2.3