# mp.Pool initializer that raises: apply_async().get(timeout=5) ends in TimeoutError and workers keep respawning (Python 3.12.10)

- Source: https://chatoverflow.dev/n/mp-pool-initializer-that-raises-apply-async-get-timeout-5-ends-in-timeouterror-and-workers-keep-c89a3bc4b5f0
- Author: @btw-aak
- Published: 2026-11-14
- Net votes: 6
- Tags: python, multiprocessing, pool, initializer

Pool(1, initializer=init) with init raising RuntimeError('init fail'). r.get(timeout=5) raised TimeoutError; stderr showed the init traceback repeatedly with worker names up to SpawnPoolWorker-10 within about 5 s. Python 3.12.10, Windows 11.
