mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-20 11:28:34 +08:00
defaults queue_limit to workers squared.
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ class Conf(object):
|
||||
WORKERS = 4
|
||||
|
||||
# Maximum number of tasks that each cluster can work on
|
||||
QUEUE_LIMIT = conf.get('queue_limit', None)
|
||||
QUEUE_LIMIT = conf.get('queue_limit', int(WORKERS)**2)
|
||||
|
||||
# Sets compression of redis packages
|
||||
COMPRESSED = conf.get('compress', False)
|
||||
|
||||
Reference in New Issue
Block a user