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
[Question] How to reload plugin with new wasm file? #631
Comments
@fangzhengjin - which SDK are you using? Also, what are you hoping to preserve by reloading a plug-in? If there's nothing about the previous plug-in needed, you should just create a new plug-in with the new wasm. depending on the SDK you may also want to |
I use Rust SDK. |
Maybe extism can provide a way to upgrade the plugin? |
Can you elaborate on that please? |
I plan to plug-in some system functions and dynamically load them into the system. At this time, a single plug-in will be upgraded, but the main service will not be shut down. |
@fangzhengjin you should just be able to instantiate a new Extism Plugin and replace it with the old one as @nilslice suggested above. There shouldn't be a need to restart your service to do this. Can you share a bit more about your architecture? (e.g., is this a multi-threaded app where different threads are sharing the Plugin object) |
How to reload plugin with new wasm file?
The text was updated successfully, but these errors were encountered: