Преглед на файлове

map() must now use ts.run().join() now that TaskSet.join() is gone

Ask Solem преди 15 години
родител
ревизия
457580f804
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      celery/task/base.py

+ 1 - 1
celery/task/base.py

@@ -525,7 +525,7 @@ class TaskSet(object):
     def map(cls, func, args, timeout=None):
         """Distribute processing of the arguments and collect the results."""
         remote_task = cls.remote_execute(func, args)
-        return remote_task.join(timeout=timeout)
+        return remote_task.run().join(timeout=timeout)
 
     @classmethod
     def map_async(cls, func, args, timeout=None):