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

Propagate user app panics to SF for async apis #100

Merged

Conversation

youyuanwu
Copy link
Collaborator

Previously user app code panics in the SF callback/notification code causes the process to exit.
This PR changes this behavior: for all SF async api notifications with Begin and End calls, mssf provides user an async function to implement. If user function panics, mssf considers the callback/notification failed with error code E_UNEXPECTED and returns this error code to SF.
For synchronous apis that user implements, the panic is unhandled and will cause process to terminate, because mssf currently does not do anything for synchronous SF calls, user app code is directly executed on SF threads.

@youyuanwu youyuanwu marked this pull request as ready for review November 21, 2024 00:38
@youyuanwu youyuanwu force-pushed the users/youyuanwu/propagate-panic-to-sf branch from 1af46bd to 9ff8ab5 Compare December 2, 2024 23:09
@youyuanwu youyuanwu merged commit c19c2ef into Azure:main Dec 2, 2024
3 checks passed
@youyuanwu youyuanwu deleted the users/youyuanwu/propagate-panic-to-sf branch December 2, 2024 23:18
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.

2 participants