Closed sergeykk closed 10 months ago
In the following minimal snippet, f.result() hangs when scheduled function raises BaseException() . It works fine with concurrent.futures ProcessPoolExecutor
def test_pebble_exceptions(): import pebble executor = pebble.ThreadPool() def foo(): raise BaseException() try: f = executor.schedule(foo) f.result() except BaseException as e: assert isinstance(e, BaseException)
Issue fixed in release 5.0.6.
5.0.6
In the following minimal snippet, f.result() hangs when scheduled function raises BaseException() . It works fine with concurrent.futures ProcessPoolExecutor