Преглед на файлове

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 internal:
+            if isinstance(einfo.exception, MemoryError):
+                raise MemoryError('Process got: %s' % (einfo.exception, ))
             if isinstance(einfo.exception, Ignore):
             if isinstance(einfo.exception, Ignore):
                 format = self.ignored_msg
                 format = self.ignored_msg
                 description = 'ignored'
                 description = 'ignored'