mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-26 08:18: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
|
||||
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
|
||||
@@ -67,7 +67,7 @@ All configuration settings are optional. e.g:
|
||||
|
||||
.. code:: python
|
||||
|
||||
# settings.py
|
||||
# settings.py example
|
||||
Q_CLUSTER = {
|
||||
'name': 'myproject',
|
||||
'workers': 8,
|
||||
@@ -75,6 +75,8 @@ All configuration settings are optional. e.g:
|
||||
'timeout': 60,
|
||||
'compress': True,
|
||||
'save_limit': 250,
|
||||
'queue_limit: 500,
|
||||
'cpu_affinity': 1,
|
||||
'label': 'Django Q',
|
||||
'redis': {
|
||||
'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
|
||||
|
||||
.. 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
|
||||
---------
|
||||
|
||||
+1
-1
@@ -37,6 +37,7 @@ Configuration is handled via the ``Q_CLUSTER`` dictionary in your :file:`setting
|
||||
'timeout': 60,
|
||||
'compress': True,
|
||||
'save_limit': 250,
|
||||
'queue_limit: 500,
|
||||
'cpu_affinity': 1,
|
||||
'label': 'Django Q',
|
||||
'redis': {
|
||||
@@ -46,7 +47,6 @@ Configuration is handled via the ``Q_CLUSTER`` dictionary in your :file:`setting
|
||||
}
|
||||
|
||||
|
||||
|
||||
name
|
||||
~~~~
|
||||
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ Reference
|
||||
|
||||
The pid of the pusher process
|
||||
|
||||
.. py:attribute:: monitormight
|
||||
.. py:attribute:: monitor
|
||||
|
||||
The pid of the monitor process
|
||||
|
||||
|
||||
Reference in New Issue
Block a user