mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-05 06:28:11 +08:00
Minor updates to timeout docs
This commit is contained in:
+3
-1
@@ -65,11 +65,13 @@ recycle
|
|||||||
|
|
||||||
The number of tasks a worker will process before recycling . Useful to release memory resources on a regular basis. Defaults to ``500``.
|
The number of tasks a worker will process before recycling . Useful to release memory resources on a regular basis. Defaults to ``500``.
|
||||||
|
|
||||||
|
.. _timeout:
|
||||||
|
|
||||||
timeout
|
timeout
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
|
|
||||||
The number of seconds a worker is allowed to spend on a task before it's terminated. Defaults to ``None``, meaning it will never time out.
|
The number of seconds a worker is allowed to spend on a task before it's terminated. Defaults to ``None``, meaning it will never time out.
|
||||||
Set this to something that makes sense for your project.
|
Set this to something that makes sense for your project. Can be overridden for individual tasks.
|
||||||
|
|
||||||
compress
|
compress
|
||||||
~~~~~~~~
|
~~~~~~~~
|
||||||
|
|||||||
+1
-1
@@ -87,7 +87,7 @@ Reference
|
|||||||
:type func: object
|
:type func: object
|
||||||
:param hook: Optional function to call after execution
|
:param hook: Optional function to call after execution
|
||||||
:type hook: object
|
:type hook: object
|
||||||
:param int timeout: timeout in seconds. Overrides the cluster setting.
|
:param int timeout: Overrides global cluster :ref:`timeout`.
|
||||||
:param bool sync: If set to True, async will simulate a task execution
|
:param bool sync: If set to True, async will simulate a task execution
|
||||||
:param redis: Optional redis connection
|
:param redis: Optional redis connection
|
||||||
:param kwargs: Keyword arguments for the task function
|
:param kwargs: Keyword arguments for the task function
|
||||||
|
|||||||
Reference in New Issue
Block a user