-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make sure PyWPS objects are serializable #658
Comments
While investigating this, I realized that the Is this something that should be uniform across the code? |
Another more serious issue is that |
Hello huard,
I also noticed the different behavior of json properties across the code and I did addressed the issue in some of my refactoring such as [1]. I think this should be fixed. [1] gschwind@db27387 |
Hello huard,
I do also agree that is quite an issue, but refactoring this is very difficult at the moment. Best regard. |
Hello, Moreover the json serialization is used in different context with very different meaning, the serialization may end up as json outputs for json request, may be used within XML templates or may be used to serialize data to the data base. We should clarify the intend of json serialization and try to keep it. |
Description
Parallelisation libraries, like dask, communicate processes from the scheduler to workers by serializing-deserializing objects through the network. It seems that some PyWPS objects are not serializable. The issues I've found so far are:
weakref
in the IO handlers)EncodedFile
object that is not pickable.I propose to start by writing tests that try to pickle PyWPS objects, submit a PR, and pursue the discussion over there.
Environment
Steps to Reproduce
Additional Information
The text was updated successfully, but these errors were encountered: