[New-bugs-announce] [issue9244] multiprocessing.pool: Pool crashes if worker can't encode result (with patch)

Ask Solem report at bugs.python.org
Tue Jul 13 13:51:55 CEST 2010


New submission from Ask Solem <askh at opera.com>:

If the target function returns an unpickleable value the worker process crashes. This patch tries to safely handle unpickleable errors, while enabling the user to inspect such errors after the fact.

In addition a new argument has been added to apply_async: error_callback.
This is an optional callback that is called if the job raises an exception. The signature of the callback is `callback(exc)`.

----------
components: Library (Lib)
files: multiprocessing-trunk at 82502-handle_worker_encoding_errors.patch
keywords: patch
messages: 110173
nosy: asksol, jnoller
priority: normal
severity: normal
status: open
title: multiprocessing.pool: Pool crashes if worker can't encode result (with patch)
type: behavior
versions: Python 2.6, Python 2.7
Added file: http://bugs.python.org/file17982/multiprocessing-trunk@82502-handle_worker_encoding_errors.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9244>
_______________________________________


More information about the New-bugs-announce mailing list