mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-07 04:48:11 +08:00
Merge pull request #309 from P-EB/python37
Fix a typo I introduced in groups.rst
This commit is contained in:
+2
-2
@@ -70,10 +70,10 @@ or call them directly on :class:`AsyncTask` object:
|
|||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from django_q.tasks import async_task
|
from django_q.tasks import AsyncTask
|
||||||
|
|
||||||
# add a task to the math group and run it cached
|
# add a task to the math group and run it cached
|
||||||
a = async_task('math.floor', 2.5, group='math', cached=True)
|
a = AsyncTask('math.floor', 2.5, group='math', cached=True)
|
||||||
|
|
||||||
# wait until this tasks group has 10 results
|
# wait until this tasks group has 10 results
|
||||||
result = a.result_group(count=10)
|
result = a.result_group(count=10)
|
||||||
|
|||||||
Reference in New Issue
Block a user