dispatchrun / dispatch-py

Python package to develop applications with Dispatch.
https://pypi.org/project/dispatch-py/
Apache License 2.0
56 stars 3 forks source link

Wrap pickled values in dispatch.sdk.python.v1 container #177

Closed chriso closed 5 months ago

chriso commented 5 months ago

This PR updates the SDK to wrap pickled values in the new dispatch.sdk.python.v1.Pickled container from https://github.com/dispatchrun/dispatch-proto/pull/35, rather than using the built-in BytesValue proto message.

This PR also updates the SDK to use the new typed_coroutine_state field to hold pickled state.

These changes will allow observers (e.g. the CLI) to disambiguate pickled values from other bytes sent across the wire.