From eabf24946baa0cfde736d7e9055f8b4cafe796d8 Mon Sep 17 00:00:00 2001 From: PCoder Date: Sat, 23 Feb 2019 13:20:55 +0100 Subject: [PATCH] Add nameko config --- dal/settings.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dal/settings.py b/dal/settings.py index 6523348..03e9da9 100644 --- a/dal/settings.py +++ b/dal/settings.py @@ -138,6 +138,17 @@ AUTH_LDAP_USER_ATTR_MAP = { "email": "mail" } +# Config to be passed to ClusterRpcProxy +NAMEKO_CONFIG = { + 'AMQP_URL': 'amqp://127.0.0.1:5672/' +} + +# Number of proxies to create +# Each proxy is a single threaded standalone ClusterRpcProxy +NAMEKO_POOL_SIZE = 4 +# Set timeout for RPC +NAMEKO_TIMEOUT = 15 # timeout 15 seconds + LOGGING = { 'disable_existing_loggers': False, 'version': 1,