Commit 096a224
committed
Auto merge of #604 - Mark-Simulacrum:background-reports, r=Mark-Simulacrum
Discover necessity of reporting in the background
This will increase the latency to starting a report by ~10 minutes in the worst case, but those take long enough to generate (and experiments are slow enough) that this doesn't seem like a big deal. In practice, my hope is that it will:
* Avoid needing retry-report quite as frequently, as OOMs and other abnormal crashes will be gracefully recovered from (albeit likely sending the server into a death spiral if we *really* can't generate the report; in practice this shouldn't happen). It was already somewhat the case that a server restart would start the generation again, just that a thread *panic* didn't since the report generation thread died in that case. So this should be essentially as-before.
* Avoid fairly heavy piece of work done on *every* new result, which hopefully improved result endpoint performance and reduces normal server load.
See also commit messages for some additional details.4 files changed
+45
-43
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
506 | 506 | | |
507 | 507 | | |
508 | 508 | | |
509 | | - | |
510 | | - | |
511 | 509 | | |
512 | 510 | | |
513 | 511 | | |
| |||
522 | 520 | | |
523 | 521 | | |
524 | 522 | | |
525 | | - | |
526 | | - | |
527 | | - | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
532 | 527 | | |
533 | | - | |
534 | | - | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
535 | 531 | | |
536 | 532 | | |
| 533 | + | |
| 534 | + | |
537 | 535 | | |
538 | 536 | | |
539 | 537 | | |
| |||
564 | 562 | | |
565 | 563 | | |
566 | 564 | | |
567 | | - | |
568 | | - | |
569 | | - | |
570 | | - | |
571 | | - | |
572 | | - | |
573 | | - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
574 | 569 | | |
575 | | - | |
576 | | - | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
577 | 573 | | |
578 | 574 | | |
| 575 | + | |
| 576 | + | |
579 | 577 | | |
580 | 578 | | |
581 | 579 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
314 | 323 | | |
| 324 | + | |
| 325 | + | |
315 | 326 | | |
316 | 327 | | |
317 | 328 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | 172 | | |
180 | 173 | | |
181 | 174 | | |
| |||
0 commit comments