John T
11/16/2021, 2:46 AMPrefectResult
requires the result to be JSON serializable. After digging into where PrefectResult
was being used, we realized that we could change the serializer from JSONSerializer()
to PickleSerializer()
and have our pydantic objects move around seamlessly. We are however curious if changing the PrefectResult serializer to a pickling one can introduce some unforeseen consequences.
Thanks in advance for any clarification!Kevin Kho
Serializer()
has a deserialize
method which knows how to unpickle that so by the time it’s loaded in, it’s in the format you need.
For example knows to bring it back out into a DataFrame upon loadingJohn T
11/16/2021, 2:51 AMKevin Kho
PandasSerializer
knows to bring it back outJohn T
11/16/2021, 3:03 AM