mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 04:58:11 +08:00
adds a limit to the queue
This commit is contained in:
@@ -33,6 +33,9 @@ class Conf(object):
|
||||
# Failures are always saved
|
||||
SAVE_LIMIT = conf.get('save_limit', 250)
|
||||
|
||||
# Maximum number of tasks that each cluster can work on
|
||||
QUEUE_LIMIT = conf.get('queue_limit', None)
|
||||
|
||||
# Number of workers in the pool. Default is cpu count. +2 for monitor and pusher
|
||||
WORKERS = conf.get('workers', cpu_count())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user