docs: added queue_limit information

This commit is contained in:
Ilan
2015-07-24 11:28:52 +02:00
parent 0e7a5c4afb
commit a44fc66682
4 changed files with 8 additions and 5 deletions
+4 -2
View File
@@ -57,7 +57,7 @@ Installation
- Make sure you have a `Redis <http://redis.io/>`__ server running - Make sure you have a `Redis <http://redis.io/>`__ server running
somewhere somewhere
Read the more complete documentation at `http://django-q.readthedocs.org <http://django-q.readthedocs.org>`__ Read the full documentation at `http://django-q.readthedocs.org <http://django-q.readthedocs.org>`__
Configuration Configuration
@@ -67,7 +67,7 @@ All configuration settings are optional. e.g:
.. code:: python .. code:: python
# settings.py # settings.py example
Q_CLUSTER = { Q_CLUSTER = {
'name': 'myproject', 'name': 'myproject',
'workers': 8, 'workers': 8,
@@ -75,6 +75,8 @@ All configuration settings are optional. e.g:
'timeout': 60, 'timeout': 60,
'compress': True, 'compress': True,
'save_limit': 250, 'save_limit': 250,
'queue_limit: 500,
'cpu_affinity': 1,
'label': 'Django Q', 'label': 'Django Q',
'redis': { 'redis': {
'host': '127.0.0.1', 'host': '127.0.0.1',
+2 -1
View File
@@ -160,7 +160,8 @@ Afterwards the sentinel waits for the monitor to empty the result and then the s
- Signal that we have stopped - Signal that we have stopped
.. warning:: .. warning::
If you force the cluster to terminate before the stop procedure has completed, you can lose tasks or results still being held in the queues. If you force the cluster to terminate before the stop procedure has completed, you can lose tasks or results still being held in memory.
You can manage the amount of tasks in a clusters memory by setting the :ref:`queue_limit`.
Reference Reference
--------- ---------
+1 -1
View File
@@ -37,6 +37,7 @@ Configuration is handled via the ``Q_CLUSTER`` dictionary in your :file:`setting
'timeout': 60, 'timeout': 60,
'compress': True, 'compress': True,
'save_limit': 250, 'save_limit': 250,
'queue_limit: 500,
'cpu_affinity': 1, 'cpu_affinity': 1,
'label': 'Django Q', 'label': 'Django Q',
'redis': { 'redis': {
@@ -46,7 +47,6 @@ Configuration is handled via the ``Q_CLUSTER`` dictionary in your :file:`setting
} }
name name
~~~~ ~~~~
+1 -1
View File
@@ -127,7 +127,7 @@ Reference
The pid of the pusher process The pid of the pusher process
.. py:attribute:: monitormight .. py:attribute:: monitor
The pid of the monitor process The pid of the monitor process