Repository navigation
Commit 5464c43
authored
patch cancel bug: immediately mark predictions as cancelled (#1798)
* unconditionally mark predictions as cancelled without waiting for cancellation to succeed
while I struggle with #1786, we see queue spikes because not responding to cancellation promptly causes the pod to get restarted. this is a dirty hack to pretend like cancellation works immediately. as soon as we fix the race condition (and possibly any issues with task.cancel() behaving differently from signal handlers), we can drop this.
Signed-off-by: technillogue <technillogue@gmail.com>
* make Mux.write a sync method
this makes the cancel patch cleaner, but might be a small speedup for high-throughput outputs
Signed-off-by: technillogue <technillogue@gmail.com>
* gate this behind a feature flag
---------
Signed-off-by: technillogue <technillogue@gmail.com>1 parent b9df82a commit 5464c43
2 files changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
407 | 417 | | |
408 | 418 | | |
409 | 419 | | |
| |||
427 | 437 | | |
428 | 438 | | |
429 | 439 | | |
430 | | - | |
| 440 | + | |
431 | 441 | | |
432 | 442 | | |
433 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| |||
0 commit comments