mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
windows: fix inefficient gathering of task processes (#20619)
* windows: fix inefficient gathering of task processes * return set of just executor pid in case of ps error
This commit is contained in:
@@ -102,7 +102,7 @@ func (e *UniversalExecutor) setSubCmdCgroup(cmd *exec.Cmd, cgroup string) (func(
|
||||
}
|
||||
}
|
||||
|
||||
func (e *UniversalExecutor) ListProcesses() *set.Set[procstats.ProcessID] {
|
||||
func (e *UniversalExecutor) ListProcesses() set.Collection[procstats.ProcessID] {
|
||||
return procstats.List(e.command)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user