jonadsimon / wonder-words-generator

Generates WonderWords puzzles
Apache License 2.0
2 stars 0 forks source link

Use multiprocessing to try multiple word combinations in parallel #14

Closed jonadsimon closed 2 years ago

jonadsimon commented 2 years ago

Can try to simultaneously generate e.g. 4 boards by calling the MiniZinc script with 4 different data files and taking whichever completed first

Before this, should do the same with serial retry logic

jonadsimon commented 2 years ago

Added in https://github.com/jonadsimon/wonder-words-generator/commit/fdebbf9dbe4ad72882cdba2de0fed9a1decc9f96

Didn't need multiprocessing after all, instead just looped over subprocess.Popen() 4x times and manually managed jobs.