mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 08:28:12 +08:00
docs: mention possible cpu_count failure
This commit is contained in:
+6
-2
@@ -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
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
@@ -232,4 +232,8 @@ Optional
|
|||||||
$ pip install hiredis
|
$ pip install hiredis
|
||||||
|
|
||||||
|
|
||||||
.. 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.
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user