mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-22 08:50:13 +08:00
feat: catch Interrupt and SIGTERM signals to ensure plugin quitted
This commit is contained in:
@@ -137,6 +137,7 @@ func (p *HashicorpPlugin) Call(funcName string, args ...interface{}) (interface{
|
||||
|
||||
func (p *HashicorpPlugin) Quit() error {
|
||||
// kill hashicorp plugin process
|
||||
log.Warn().Msg("quit hashicorp plugin process")
|
||||
pluginHost.Quit()
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user