mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 15:58:11 +08:00
defaults queue_limit to workers squared.
This commit is contained in:
+1
-1
@@ -62,7 +62,7 @@ class Conf(object):
|
|||||||
WORKERS = 4
|
WORKERS = 4
|
||||||
|
|
||||||
# Maximum number of tasks that each cluster can work on
|
# 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
|
# Sets compression of redis packages
|
||||||
COMPRESSED = conf.get('compress', False)
|
COMPRESSED = conf.get('compress', False)
|
||||||
|
|||||||
Reference in New Issue
Block a user