소스 검색

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'