mirror of
https://github.com/django-q2/django-q2.git
synced 2026-09-15 13:37:56 +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
|
||||
|
||||
.. warning:: Since Python 3.7 `async` became a reserved keyword and was refactored to `async_task`
|
||||
|
||||
Brokers
|
||||
~~~~~~~
|
||||
- `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
|
||||
|
||||
|
||||
Contents:
|
||||
|
||||
.. toctree::
|
||||
|
||||
@@ -7,6 +7,9 @@ Tasks
|
||||
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`:
|
||||
|
||||
.. code:: python
|
||||
|
||||
Reference in New Issue
Block a user