New submission from Ask Solem <a...@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-tr...@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-tr...@82502-handle_worker_encoding_errors.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9244>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to