This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author njs
Recipients Ilya.Kulakov, njs, pitrou, yselivanov
Date 2017-12-20.00:25:03
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1513729503.2.0.213398074469.issue31489@psf.upfronthosting.co.za>
In-reply-to
Content
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(...)
History
Date User Action Args
2017-12-20 00:25:03njssetrecipients: + njs, pitrou, yselivanov, Ilya.Kulakov
2017-12-20 00:25:03njssetmessageid: <1513729503.2.0.213398074469.issue31489@psf.upfronthosting.co.za>
2017-12-20 00:25:03njslinkissue31489 messages
2017-12-20 00:25:03njscreate