mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-06 05:28:13 +08:00
Add warning about asyn_task refactor
This commit is contained in:
@@ -33,6 +33,8 @@ Requirements
|
|||||||
|
|
||||||
Tested with: Python 3.6. 3.7 Django 1.11.11 and 2.0.x
|
Tested with: Python 3.6. 3.7 Django 1.11.11 and 2.0.x
|
||||||
|
|
||||||
|
.. warning:: Since Python 3.7 `async` became a reserved keyword and was refactored to `async_task`
|
||||||
|
|
||||||
Brokers
|
Brokers
|
||||||
~~~~~~~
|
~~~~~~~
|
||||||
- `Redis <https://django-q.readthedocs.org/en/latest/brokers.html#redis>`__
|
- `Redis <https://django-q.readthedocs.org/en/latest/brokers.html#redis>`__
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ Features
|
|||||||
|
|
||||||
Django Q is tested with: Python 3.6. 3.7 Django 1.11.11 LTS and 2.0.x
|
Django Q is tested with: Python 3.6. 3.7 Django 1.11.11 LTS and 2.0.x
|
||||||
|
|
||||||
|
|
||||||
Contents:
|
Contents:
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
|
|||||||
@@ -7,6 +7,9 @@ Tasks
|
|||||||
async_task()
|
async_task()
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
.. warning:: Since Python 3.7 `async` became a reserved keyword and was refactored to `async_task`
|
||||||
|
|
||||||
|
|
||||||
Use :func:`async_task` from your code to quickly offload tasks to the :class:`Cluster`:
|
Use :func:`async_task` from your code to quickly offload tasks to the :class:`Cluster`:
|
||||||
|
|
||||||
.. code:: python
|
.. code:: python
|
||||||
|
|||||||
Reference in New Issue
Block a user