Skip to content

Commit 2f0d4a0

Browse files
committed
Parent must re-raise MemoryError and crash
1 parent 538e8f5 commit 2f0d4a0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

celery/worker/job.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -412,6 +412,8 @@ def _log_error(self, einfo):
412412
)
413413

414414
if internal:
415+
if isinstance(einfo.exception, MemoryError):
416+
raise MemoryError('Process got: %s' % (einfo.exception, ))
415417
if isinstance(einfo.exception, Ignore):
416418
format = self.ignored_msg
417419
description = 'ignored'

0 commit comments

Comments
 (0)