Переглянути джерело

Removes doc reference to removed celery.execute.apply_async

Ask Solem 13 роки тому
батько
коміт
709a88b36e
3 змінених файлів з 4 додано та 6 видалено
  1. 1 2
      FAQ
  2. 1 2
      celery/task/sets.py
  3. 2 2
      docs/userguide/routing.rst

+ 1 - 2
FAQ

@@ -503,8 +503,7 @@ For more information see :ref:`task-request-info`.
 Can I specify a custom task_id?
 -------------------------------
 
-**Answer**: Yes.  Use the `task_id` argument to
-:meth:`~celery.execute.apply_async`::
+**Answer**: Yes.  Use the `task_id` argument to :meth:`Task.apply_async`::
 
     >>> task.apply_async(args, kwargs, task_id="...")
 

+ 1 - 2
celery/task/sets.py

@@ -29,8 +29,7 @@ class subtask(AttributeDict):
     :param task: Either a task class/instance, or the name of a task.
     :keyword args: Positional arguments to apply.
     :keyword kwargs: Keyword arguments to apply.
-    :keyword options: Additional options to
-      :func:`celery.execute.apply_async`.
+    :keyword options: Additional options to :meth:`Task.apply_async`.
 
     Note that if the first argument is a :class:`dict`, the other
     arguments will be ignored and the values in the dict will be used

+ 2 - 2
docs/userguide/routing.rst

@@ -129,7 +129,7 @@ To route a task to the `feed_tasks` queue, you can add an entry in the
 
 
 You can also override this using the `routing_key` argument to
-:func:`~celery.execute.apply_async`, or :func:`~celery.execute.send_task`:
+:meth:`Task.apply_async`, or :func:`~celery.execute.send_task`:
 
     >>> from feeds.tasks import import_feed
     >>> import_feed.apply_async(args=["http://cnn.com/rss"],
@@ -491,7 +491,7 @@ Specifying task destination
 The destination for a task is decided by the following (in order):
 
 1. The :ref:`routers` defined in :setting:`CELERY_ROUTES`.
-2. The routing arguments to :func:`~celery.execute.apply_async`.
+2. The routing arguments to :func:`Task.apply_async`.
 3. Routing related attributes defined on the :class:`~celery.task.base.Task`
    itself.