pgiri / dispy

Distributed and Parallel Computing Framework with / for Python
https://dispy.org
Other
266 stars 55 forks source link

support executing global setup function early to provide environment for subsequent dependencies #220

Open bsync opened 3 years ago

bsync commented 3 years ago

Above commits show a rudimentary way to support immediate mode setup of a dispynode so that subsequent items from the JobCluster's "depends" list can globally refer to imported modules as they are being deserialized.

There may be a better way to accomplish this but if you check out my modification to your obj_instances.py example you should see the problem I was running into.