Increase resilience of the application against malfunctions on plugins #9083
jonasraoni
started this conversation in
Proposals
Replies: 1 comment
-
@asmecher Please, move this one to accepted, I'll attempt to handle it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Given that any upgrade on the software has the power of breaking plugins, perhaps it makes sense to protect the application against errors on the plugins.
Besides the
GatewayPlugin
(which have its own URL), plugins can also do real-time interventions through hooks/events and they might register themselves directly as callbacks somewhere across the codebase.It's possible to protect the plugin instantiation with a
try/catch
using aThrowable
(catches fatal errors), and with some workarounds, the hook/events might be shielded as well, but if the plugin registers itself as a callback somewhere, there's not much we can do for now.Together with this, it's also needed to warn the administrator about the malfunctions, especially when it fails on the instantiation phase.
Beta Was this translation helpful? Give feedback.
All reactions