mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 15:40:56 +08:00
Getting docs ready fro 0.2.0
This commit is contained in:
@@ -40,6 +40,14 @@ Stopping the cluster with ctrl-c or either the `SIGTERM` and `SIGKILL` signals,
|
|||||||
16:44:14 [Q] INFO Process-1:9 stopped monitoring results
|
16:44:14 [Q] INFO Process-1:9 stopped monitoring results
|
||||||
16:44:15 [Q] INFO Q Cluster-31781 has stopped.
|
16:44:15 [Q] INFO Q Cluster-31781 has stopped.
|
||||||
|
|
||||||
|
Multiple Clusters
|
||||||
|
-----------------
|
||||||
|
You can have as many clusters, on as many machines as you want, working on the same queue as long as:
|
||||||
|
|
||||||
|
- They connect to the same Redis server.
|
||||||
|
- They use the same cluster name. See :ref:`configuration`
|
||||||
|
- They share the same :const:`SECRET_KEY`
|
||||||
|
|
||||||
Using a Procfile
|
Using a Procfile
|
||||||
----------------
|
----------------
|
||||||
If you host on `Heroku <https://heroku.com>`__ or you are using `Honcho <https://github.com/nickstenning/honcho>`__ you can start the cluster from a :file:`Procfile` like this::
|
If you host on `Heroku <https://heroku.com>`__ or you are using `Honcho <https://github.com/nickstenning/honcho>`__ you can start the cluster from a :file:`Procfile` like this::
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ Features
|
|||||||
- Django Admin integration
|
- Django Admin integration
|
||||||
- PaaS compatible with multiple instances
|
- PaaS compatible with multiple instances
|
||||||
- Multi cluster monitor
|
- Multi cluster monitor
|
||||||
|
- Redis
|
||||||
|
- Python 2 and 3
|
||||||
|
|
||||||
Contents:
|
Contents:
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ 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
|
||||||
|
|
||||||
|
.. _configuration:
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,8 @@ Use :py:func:`async` from your code to quickly offload tasks to the py:module:`
|
|||||||
:returns: The task
|
:returns: The task
|
||||||
:rtype: Task
|
:rtype: Task
|
||||||
|
|
||||||
|
.. versionchanged:: 0.2.0
|
||||||
|
Renamed from get_task
|
||||||
|
|
||||||
.. py:class:: Task
|
.. py:class:: Task
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user