Commit 4dd8b97
Saran-386
fix(runtime): Gracefully handle cgroup and network isolation failures
Refactors the ParallelExecutor to conditionally apply sandboxing and network isolation only when running with root privileges. This prevents hangs in non-root environments where cgroup creation would previously fail. The runtime now gracefully falls back to a non-isolated mode and avoids deadlocks related to macvlan synchronization, ensuring that agents can execute successfully without requiring elevated permissions. This also fixes cross-platform compilation failures by ensuring all unix-specific code is correctly gated.1 parent 051a64d commit 4dd8b97
1 file changed
Lines changed: 2 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
67 | | - | |
68 | 66 | | |
69 | 67 | | |
70 | 68 | | |
| |||
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
83 | | - | |
| 81 | + | |
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
91 | | - | |
| 89 | + | |
92 | 90 | | |
93 | 91 | | |
94 | 92 | | |
| |||
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
140 | | - | |
141 | 138 | | |
142 | 139 | | |
143 | 140 | | |
| |||
154 | 151 | | |
155 | 152 | | |
156 | 153 | | |
157 | | - | |
158 | 154 | | |
159 | 155 | | |
160 | 156 | | |
161 | | - | |
162 | 157 | | |
163 | 158 | | |
164 | | - | |
165 | 159 | | |
166 | 160 | | |
167 | | - | |
168 | | - | |
169 | 161 | | |
170 | 162 | | |
171 | 163 | | |
172 | 164 | | |
173 | | - | |
174 | 165 | | |
175 | 166 | | |
176 | 167 | | |
| |||
0 commit comments