Skip to content
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

Avoid opaque byte fields/containers #35

Merged
merged 8 commits into from
Jun 12, 2024
Merged

Avoid opaque byte fields/containers #35

merged 8 commits into from
Jun 12, 2024

Conversation

chriso
Copy link
Contributor

@chriso chriso commented Jun 11, 2024

This PR deprecates the bytes coroutine_state field on Poll{,Result} in favor of a google.protobuf.Any field. The additional type URL will help systems introspecting the state; they would otherwise have to guess what the opaque bytes represent.

This PR also adds a wrapper message for pickled Python values, so that the Python SDK can attach a type URL to Python inputs, outputs and now state. Previously we were using the built-in BytesValue message, and so elsewhere had to guess what the opaque bytes represent.

@chriso chriso self-assigned this Jun 11, 2024
@chriso chriso merged commit 547fc5b into main Jun 12, 2024
3 checks passed
@chriso chriso deleted the bytes-containers branch June 12, 2024 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants