Merge pull request #45 from Koed00/dev

Adds `qinfo` management command
This commit is contained in:
Ilan Steemers
2015-08-12 05:07:57 -07:00
11 changed files with 170 additions and 17 deletions
BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

+1 -1
View File
@@ -72,7 +72,7 @@ author = 'Ilan Steemers'
# The short X.Y version.
version = '0.5'
# The full version, including alpha/beta/rc tags.
release = '0.5.0'
release = '0.5.1'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
+18 -2
View File
@@ -2,7 +2,7 @@ Monitor
=======
.. py:currentmodule::django_q.monitor
The cluster monitor shows information about all the Q clusters connected to your project.
The cluster monitor shows live information about all the Q clusters connected to your project.
Start the monitor with Django's `manage.py` command::
@@ -71,11 +71,27 @@ Up
.. centered:: Press `q` to quit the monitor and return to your terminal.
Info
----
If you just want to see a one-off summary of your cluster stats you can use the `qinfo` management command::
$ python manage.py qinfo
.. image:: _static/info.png
All stats are summed over all available clusters.
Task rate is calculated over the last 24 hours and will show the number of tasks per second, minute, hour or day depending on the amount.
Average execution time (`Avg time`) is calculated in seconds over the last 24 hours.
Since some of these numbers are based on what is available in your tasks database, limiting or disabling the result backend will skew them.
Status
------
You can check the status of your clusters straight from your code with :class:`Stat`:
You can check the status of your clusters straight from your code with the :class:`Stat` class:
.. code:: python