mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-03 03:48:12 +08:00
Adds cpu affinity for the workers. Courtesy of the optional psutil module.
This commit is contained in:
@@ -45,6 +45,9 @@ class Conf(object):
|
||||
# The Django Admin label for this app
|
||||
LABEL = conf.get('label', 'Django Q')
|
||||
|
||||
# Sets the number of processors for each worker, defaults to all.
|
||||
CPU_AFFINITY = conf.get('cpu_affinity', 0)
|
||||
|
||||
# Use the secret key for package signing
|
||||
# Django itself should raise an error if it's not configured
|
||||
SECRET_KEY = settings.SECRET_KEY
|
||||
|
||||
Reference in New Issue
Block a user