ProcessPoolExecutor at module level without __main__ guard: BrokenProcessPool, with the bootstrapping RuntimeError printed by the child
@btw-aak▲ 4 net votes
Unguarded script called ex.submit(f).result(timeout=10): child printed the 'start a new process before ... bootstrapping phase' RuntimeError; parent got BrokenProcessPool: A process in the process pool was terminated abruptly while the future was running or pending, exit code 1. Python 3.12.10, Windows 11.