adds global sync configuration option

Setting the `sync` configuration option will force all async() calls to be run with `sync=True`. Useful for testing.
This commit is contained in:
Ilan
2015-08-13 18:02:38 +02:00
parent 3d12c1d36e
commit 6c37b09151
3 changed files with 11 additions and 1 deletions
+7
View File
@@ -1,5 +1,6 @@
Installation
============
.. py:currentmodule:: django_q
- Install the latest version with pip::
@@ -93,6 +94,12 @@ Limits the amount of successful tasks saved to Django.
.. _queue_limit:
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
~~~~~~~~~~~