mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-03 11:48:12 +08:00
Django ORM broker
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user