-
Notifications
You must be signed in to change notification settings - Fork 64
Fix History Event None Return #466
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
|
Can we add a test case that verifies the fix? |
davidmrdavid
left a comment
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.
The change looks good to me, but let's add a test as Chris noticed :) . Thank you for the quick prototype here.
|
Added unit test that an orchestrator schedules an activity function which can return None. Let me know if the naming or any changes is unclear. Thanks for the reviews again! @cgillum @davidmrdavid |
* check activity return not none * avoid long line * add check for subo and event * fix indent * update by review * add unit test for call activity with none return * update test
Fix issue #454
When the history event tasks return None, error will be thrown since
Nonecould not be passed to json.loads.Add the condition check for history event returns so that if the return is None, the python SDK will just pass
Noneto durable extension without json deserialization.