-
Notifications
You must be signed in to change notification settings - Fork 69
feat: improve JSON error logging for Durable #298
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
base: dev
Are you sure you want to change the base?
feat: improve JSON error logging for Durable #298
Conversation
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
raise ValueError( | ||
'activity trigger input must be a string or a ' | ||
f'valid json serializable ({data.value})') | ||
f'valid json serializable ({data.value})') from e |
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.
nit: could you add a unit test for this in tests/test_durable_functions.py
?
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.
Done - let me know if you need to see more cases - I figured as long as the error was there in one case, that was sufficient
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 - this change can be part of v1.25.0. We're looking to release 1.25.0b1 by end of October - lmk if there's any concerns over timelines!
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.
Sounds good to me
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Currently if to_json fails, we discard the original failure and raise our own ValueError - this PR makes the new exception inherit from the original exception, making debugging serialization issues easier.