-
Notifications
You must be signed in to change notification settings - Fork 107
Move implicit output bindings serialization logic to Python library #643
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
Conversation
has_return = True | ||
return_binding_name = f'{desc.type}_ret' | ||
has_implicit_return = True | ||
return_binding_name = desc.type |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the line we refer to our trigger bindings (a.k.a. python-library activity-trigger) for serializing implicit output values.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! Although I'm not an active owner of this repo so I would prefer to wait for someone else to approve of these changes before merging.
The same here, looks good to me. Just if we have someone from durable function have a look that will be great. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (assuming the CI tests pass)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also looks good to me! Let's fix those build errors and merge 👍
05d6356
to
01c49c0
Compare
Background
Even when a trigger type is marked with implicit output, it is still possible for an extension to marshal the output result (e.g. Python Durable Function's ActivityTrigger needs to serialize the return result into JSON when it sends to the durable extension).
Justification
Handing over this control to Python Library allows an implicit_output trigger to modify the encode behavior flexibly.