Message308696
It might be possible to create ProcessPoolExecutor and get it to spawn all the workers *before* you start the asyncio loop. It looks like ProcessPoolExecutor delays spawning workers until the first piece of work is submitted, but at that point it spawns all of them immediately, so something like this might work:
executor = ProcessPoolExecutor(...)
executor.submit(lambda: None).wait()
with asyncio.get_event_loop() as loop:
loop.run_until_complete(...) |
|
Date |
User |
Action |
Args |
2017-12-20 00:25:03 | njs | set | recipients:
+ njs, pitrou, yselivanov, Ilya.Kulakov |
2017-12-20 00:25:03 | njs | set | messageid: <1513729503.2.0.213398074469.issue31489@psf.upfronthosting.co.za> |
2017-12-20 00:25:03 | njs | link | issue31489 messages |
2017-12-20 00:25:03 | njs | create | |
|