瀏覽代碼

Parent must re-raise MemoryError and crash

Ask Solem 12 年之前
父節點
當前提交
2f0d4a0c82
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      celery/worker/job.py

+ 2 - 0
celery/worker/job.py

@@ -412,6 +412,8 @@ class Request(object):
         )
 
         if internal:
+            if isinstance(einfo.exception, MemoryError):
+                raise MemoryError('Process got: %s' % (einfo.exception, ))
             if isinstance(einfo.exception, Ignore):
                 format = self.ignored_msg
                 description = 'ignored'