Django ORM broker

This commit is contained in:
Ilan Steemers
2015-09-14 13:24:43 +02:00
parent 9b84bf9110
commit 2bffcf554b
10 changed files with 187 additions and 8 deletions
+6
View File
@@ -47,6 +47,9 @@ class Conf(object):
# SQS broker
SQS = conf.get('sqs', None)
# ORM broker
ORM = conf.get('orm', None)
# Name of the cluster or site. For when you run multiple sites on one redis server
PREFIX = conf.get('name', 'default')
@@ -57,6 +60,9 @@ class Conf(object):
# Failures are always saved
SAVE_LIMIT = conf.get('save_limit', 250)
# Disable the scheduler
SCHEDULER = conf.get('scheduler', True)
# Number of workers in the pool. Default is cpu count if implemented, otherwise 4.
WORKERS = conf.get('workers', False)
if not WORKERS: