Commit 971b4e5
committed
resource: use drainset in drain_get_info()
Problem: Generating the resource.status drain response in-place as
is currently done in drain_get_info() is very slow when there are
many drained ranks.
Use the drainset class to generate the object returned by
drain_get_info(). This should be much faster since the JSON object
is generated once after all like ranks have been collected together.
Fixes #58561 parent 11df56e commit 971b4e5
1 file changed
+13
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
281 | 281 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
292 | 286 | | |
293 | | - | |
294 | | - | |
295 | 287 | | |
296 | 288 | | |
297 | | - | |
298 | | - | |
299 | | - | |
| 289 | + | |
300 | 290 | | |
301 | | - | |
302 | | - | |
| 291 | + | |
| 292 | + | |
303 | 293 | | |
304 | 294 | | |
305 | 295 | | |
| |||
0 commit comments