mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-01 09:28:12 +08:00
Adds cpu affinity for the workers. Courtesy of the optional psutil module.
This commit is contained in:
@@ -102,4 +102,5 @@ LOGGING = {
|
||||
STATIC_URL = '/static/'
|
||||
|
||||
# Django Q specific
|
||||
Q_CLUSTER = {'name': 'django_q_test'}
|
||||
Q_CLUSTER = {'name': 'django_q_test',
|
||||
'cpu_affinity': 1}
|
||||
|
||||
Reference in New Issue
Block a user