aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/queues.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-05-30 22:38:54 +0100
committerGravatar GitHub <[email protected]>2018-05-30 22:38:54 +0100
commitaaa387a5b3bdb9bc416690dccef66196c76d373e (patch)
tree270900787f1f8d76a97279f277fb281d45f37859 /pysite/queues.py
parentAdd FAQ about LPTHW (diff)
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
Diffstat (limited to 'pysite/queues.py')
-rw-r--r--pysite/queues.py5
1 files changed, 5 insertions, 0 deletions
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)
+}