Fire an extension event before unloading extensions #25797
falmanna
started this conversation in
Feature Requests
Replies: 1 comment
|
I'd like to create a PR for this if there are not concerns with the proposal. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
As a follow up to this feature, there should be an event that fires before unloading extensions.
Basic Example
No response
Motivation
If we want to properly cleanup extension related resources when auto reload is enabled (developing an extension), we should be able to get an event before unloading them. Additionally, unloading event better be a filter than an action.
Detailed Design
Introduce
extensions.unloadingeventRequirements List
Must Have:
Should Have:
Could Have:
Won't Have:
Drawbacks
Blocking events can freeze the server if expensive?
Alternatives
Non-blocking only version, but it might still cause some leaks if resources are not properly cleaned up.
Adoption Strategy
Nothing changes.
Unresolved Questions
No response
All reactions