Files
OliveTin/service/internal/executor/exec_tool_helper_kill.go
2026-05-19 22:25:56 +01:00

20 lines
374 B
Go

package executor
import (
"context"
"os/exec"
)
func runExecToolHelperKillCommand(attrs map[string]string) {
helper, killID := "", ""
if attrs != nil {
helper = attrs["helper"]
killID = attrs["kill_id"]
}
if helper == "" || killID == "" {
return
}
killCmd := exec.CommandContext(context.Background(), "olivetin-"+helper, "kill", killID)
_ = killCmd.Run()
}