MycroftAI / padatious

A neural network intent parser
http://padatious.readthedocs.io
Apache License 2.0
159 stars 40 forks source link

Replace multiprocessing with concurrent.futures #34

Closed forslund closed 3 months ago

forslund commented 3 years ago

Description

Multiprocessing pools can't safely be used in a threaded context in Python 3.9+. This replaces the multiprocessing Pool with a ProcessPoolExecutor from concurrent.futures. See https://github.com/MycroftAI/mycroft-core/issues/2799

Type of PR

Testing

Run together with PR https://github.com/MycroftAI/mycroft-skills-manager/pull/94 on python 3.9 and check that Mycroft doesn't throw exceptions when updating skills or training padatious.

forslund commented 3 years ago

Will try to resolve the failing test the next coming days.

pep8speaks commented 3 years ago

Hello @forslund! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2021-04-04 09:13:31 UTC
forslund commented 3 years ago

Got some feedback from @j1nx and this does not resolve the intended issue 100%