Bläddra i källkod

deprecated TaskSet.run removed (use TaskSet.apply_async instead)

As schedule by the deprecation timeline:
http://ask.github.com/celery/internals/deprecation.html
Ask Solem 15 år sedan
förälder
incheckning
97277e825e
2 ändrade filer med 2 tillägg och 10 borttagningar
  1. 2 2
      celery/result.py
  2. 0 8
      celery/task/base.py

+ 2 - 2
celery/result.py

@@ -176,8 +176,8 @@ class TaskSetResult(object):
     """Working with :class:`celery.task.TaskSet` results.
 
     An instance of this class is returned by
-    :meth:`celery.task.TaskSet.run()`. It lets you inspect the status and
-    return values of the taskset as a single entity.
+    :meth:`celery.task.TaskSet.apply_async()`. It lets you inspect the
+    status and return values of the taskset as a single entity.
 
     :option taskset_id: see :attr:`taskset_id`.
     :option subtasks: see :attr:`subtasks`.

+ 0 - 8
celery/task/base.py

@@ -1,5 +1,4 @@
 import sys
-import warnings
 from datetime import timedelta
 
 from billiard.serialization import pickle
@@ -562,13 +561,6 @@ class TaskSet(object):
         self.arguments = args
         self.total = len(args)
 
-    def run(self, *args, **kwargs):
-        """Deprecated alias to :meth:`apply_async`"""
-        warnings.warn(DeprecationWarning(
-            "TaskSet.run will be deprecated in favor of TaskSet.apply_async "
-            "in celery v1.2.0"))
-        return self.apply_async(*args, **kwargs)
-
     def apply_async(self, connect_timeout=conf.BROKER_CONNECTION_TIMEOUT):
         """Run all tasks in the taskset.