Explorar o código

Parent must re-raise MemoryError and crash

Ask Solem %!s(int64=12) %!d(string=hai) anos
pai
achega
2f0d4a0c82
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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'