From fb8da040b492c7c8598badf8395a8bdc224a4eb5 Mon Sep 17 00:00:00 2001 From: Ilan Steemers Date: Tue, 14 Aug 2018 12:26:50 +0200 Subject: [PATCH] Add warning about asyn_task refactor --- README.rst | 2 ++ docs/index.rst | 1 + docs/tasks.rst | 3 +++ 3 files changed, 6 insertions(+) diff --git a/README.rst b/README.rst index 6414f5d..9870f76 100644 --- a/README.rst +++ b/README.rst @@ -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 `__ diff --git a/docs/index.rst b/docs/index.rst index 2c491dd..298c168 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -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:: diff --git a/docs/tasks.rst b/docs/tasks.rst index 0d23251..f0004df 100644 --- a/docs/tasks.rst +++ b/docs/tasks.rst @@ -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