defaults queue_limit to workers squared.

This commit is contained in:
Ilan Steemers
2015-09-06 15:45:17 +02:00
parent d72dd8b338
commit b201979eae
+1 -1
View File
@@ -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)