When the process for a hook plugin crashes (e.g. because of a panic), the current hook invocation fails which is expected and acceptable. However, all future hook invocations will also fail because the plugin has died. We should investigate ways to restart the plugin to allow hooks again.
When the process for a hook plugin crashes (e.g. because of a panic), the current hook invocation fails which is expected and acceptable. However, all future hook invocations will also fail because the plugin has died. We should investigate ways to restart the plugin to allow hooks again.
First invocation when the plugin crashes:
All future hook invocations:
According to https://github.com/hashicorp/go-plugin/issues/31, there is not built-in way inside go-plugin and we would have to detect such errors on our own and then initialize a new client.