Browse Source

Parent must re-raise MemoryError and crash

Ask Solem 12 years ago
parent
commit
2f0d4a0c82
1 changed files with 2 additions and 0 deletions
  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'