mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05: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:
@@ -36,7 +36,7 @@ func withNetworkIsolation(f func() error, _ *drivers.NetworkIsolationSpec) error
|
||||
|
||||
func setCmdUser(*exec.Cmd, string) error { return nil }
|
||||
|
||||
func (e *UniversalExecutor) ListProcesses() *set.Set[int] {
|
||||
func (e *UniversalExecutor) ListProcesses() set.Collection[int] {
|
||||
return procstats.List(e.childCmd.Process.Pid)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user