Server
instance not pickle-able, PerspectiveManager
was pickle-able
#2853
Labels
enhancement
Feature requests or improvements
Feature Request
Description of Problem:
Many web server setups use a process pool and send across a pickled instance of the primary web server, and some (such as ray serve) ship an instantiated web server not just to another process, but potentially to a completely different machine.
Table
andView
have never been pickle-able, nor is there any expectation that they be so, butPerspectiveManager
used to be pickle-able, and its replacement,Server
is not. Using cloudpickle (but same results for builtinpickle
):Works (perspective<3)
Doesn't work (perspective>=3)
Potential Solutions:
The workaround is to defer server construction until e.g. the first request (as we do here), but this is a bit clunky. It would be good if a
Server
instance with no tables was pickle-able, or if we could establish a better patternThe text was updated successfully, but these errors were encountered: