Browse Source

Oops... Worker silently ignored errors

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

+ 1 - 0
celery/concurrency/asynpool.py

@@ -158,6 +158,7 @@ class Worker(_pool.Worker):
     def prepare_result(self, result):
         if not isinstance(result, ExceptionInfo):
             return truncate(repr(result), 46)
+        return result
 
 
 class ResultHandler(_pool.ResultHandler):