docs: mention possible cpu_count failure

This commit is contained in:
Ilan
2015-08-04 16:43:39 +02:00
parent ae8745ab39
commit b85738675a
2 changed files with 7 additions and 2 deletions
+5 -1
View File
@@ -59,7 +59,7 @@ This can be useful if you have several projects using the same Redis server.
workers workers
~~~~~~~ ~~~~~~~
The number of workers to use in the cluster. Defaults to CPU count of the current host, but can be set to a custom number. The number of workers to use in the cluster. Defaults to CPU count of the current host, but can be set to a custom number. [#f1]_
recycle recycle
~~~~~~~ ~~~~~~~
@@ -233,3 +233,7 @@ Optional
.. py:module:: django_q .. py:module:: django_q
.. rubric:: Footnotes
.. [#f1] Uses :func:`multiprocessing.cpu_count()` which can fail on some platforms. If so , please set the worker count in the configuration manually or install :ref:`psutil<psutil>` to provide an alternative cpu count method.
+1
View File
@@ -152,5 +152,6 @@ Reference
Returns a list of :class:`Stat` objects for all active clusters. Takes an optional redis connection. Returns a list of :class:`Stat` objects for all active clusters. Takes an optional redis connection.
.. rubric:: Footnotes
.. [#f1] Uses :meth:`multiprocessing.Queue.qsize()` which is not implemented on OS X. .. [#f1] Uses :meth:`multiprocessing.Queue.qsize()` which is not implemented on OS X.