mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-24 11:48:12 +08:00
docs: added sync configuration reference
This commit is contained in:
+4
-2
@@ -92,7 +92,7 @@ Limits the amount of successful tasks saved to Django.
|
||||
- Defaults to ``250``
|
||||
- Failures are always saved.
|
||||
|
||||
.. _queue_limit:
|
||||
.. _sync:
|
||||
|
||||
sync
|
||||
~~~~
|
||||
@@ -100,6 +100,8 @@ sync
|
||||
When set to ``True`` this configuration option forces all :func:`async` calls to be run with ``sync=True``.
|
||||
Effectively making everything synchronous. Useful for testing. Defaults to ``False``.
|
||||
|
||||
.. _queue_limit:
|
||||
|
||||
queue_limit
|
||||
~~~~~~~~~~~
|
||||
|
||||
@@ -109,7 +111,7 @@ It can also be used to manage the loss of data in case of a cluster failure.
|
||||
Defaults to ``None``, meaning no limit.
|
||||
|
||||
label
|
||||
~~~~~
|
||||
~~~~~Dev
|
||||
|
||||
The label used for the Django Admin page. Defaults to ``'Django Q'``
|
||||
|
||||
|
||||
@@ -54,6 +54,7 @@ Overrides the cluster's timeout setting for this task.
|
||||
sync
|
||||
""""
|
||||
Simulates a task execution synchronously. Useful for testing.
|
||||
Can also be forced globally via the :ref:`sync` configuration option.
|
||||
|
||||
redis
|
||||
"""""
|
||||
|
||||
Reference in New Issue
Block a user