Browse Source

ResultSet: Results created from string now have the app properly set

Ask Solem 11 năm trước cách đây
mục cha
commit
4b084ba403
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      celery/result.py

+ 1 - 1
celery/result.py

@@ -332,7 +332,7 @@ class ResultSet(ResultBase):
 
         """
         if isinstance(result, string_t):
-            result = AsyncResult(result)
+            result = self.app.AsyncResult(result)
         try:
             self.results.remove(result)
         except ValueError: