From 9f2cb0412b220f46a86394b2b49e67f5f42361d3 Mon Sep 17 00:00:00 2001 From: Ned Petrov Date: Mon, 1 Jun 2026 08:38:47 +0300 Subject: [PATCH] Set command to spawn with lower priority in GenericScript Run method --- agent/script/generic_script.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/script/generic_script.go b/agent/script/generic_script.go index 10b7cd9f3..acbed7f73 100644 --- a/agent/script/generic_script.go +++ b/agent/script/generic_script.go @@ -84,6 +84,7 @@ func (s GenericScript) Run() error { command := cmd.BuildCommand(s.path) command.Stdout = stdoutFile command.Stderr = stderrFile + command.SpawnWithLowerPriority = true for key, val := range s.env { command.Env[key] = val