mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 07:38:12 +08:00
docs: added queue_limit information
This commit is contained in:
+4
-2
@@ -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
@@ -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
@@ -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
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user