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

Handle panic in module execution #113

Open
jensdrenhaus opened this issue Nov 25, 2024 · 0 comments
Open

Handle panic in module execution #113

jensdrenhaus opened this issue Nov 25, 2024 · 0 comments

Comments

@jensdrenhaus
Copy link
Member

If a panic occure in the module (plugin) code. E.g. during the execution of Init, Run or Deinit functions, this panic will cause dutagent to crash, obviously.
Wrapping the execution of these functions with proper deffer / recover pattern would help keeping the dutagent alive while reporting the failure to the user.

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

No branches or pull requests

1 participant