Explorar o código

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

Ask Solem %!s(int64=11) %!d(string=hai) anos
pai
achega
4b084ba403
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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: