sjdv1982 / seamless

Seamless is a framework to set up reproducible computations (and visualizations) that respond to changes in cells. Cells contain the input data as well as the source code of the computations, and all cells can be edited interactively.
http://sjdv1982.github.io/seamless
Other
20 stars 6 forks source link

look into the "loky" ProcessPoolExecutor to replace multiprocessing.Process in transformation execution #208

Closed sjdv1982 closed 1 year ago

sjdv1982 commented 1 year ago

Should be compatible with multiprocessing.Queue Could be used in other tasks (especially checksum calculation and serialization)

Would be a fix for #128

sjdv1982 commented 1 year ago

After looking into loky, I arrived at the following conclusions:

Therefore, loky can be a useful new (i.e. additional) backend to locally execute Seamless jobs. A job definitely needs to be annotated (e.g. {"meta": "simple"} as suitable for loky. In particular:

sjdv1982 commented 1 year ago

Now that delegation works fine, the risk of forking can be easily mitigated. loky is no longer expected to be needed.