Commit 1be2602
authored
[cuegui] Handle gRPC CANCELLED errors to fix UI refresh issues (AcademySoftwareFoundation#2042)
**Link the Issue(s) this Pull Request is related to.**
- AcademySoftwareFoundation#2041
**Summarize your change.**
Fix UI refresh failures caused by unhandled gRPC CANCELLED and
UNAVAILABLE errors during connection interruptions. The UI would stop
updating after performing actions like "eat and mark done" or "retry",
requiring a restart.
Changes:
- Add CancelledException class and map StatusCode.CANCELLED to exception
- Update ThreadPool to gracefully handle gRPC connection errors with
warning instead of error, allowing automatic retry on next update cycle
- Add gRPC error handling to FrameMonitorTree._getUpdate() and
_getUpdateChanged() to recover from transient connection issues
- Return None on CANCELLED/UNAVAILABLE to trigger full update on retry
- Return empty list on NOT_FOUND to clear deleted jobs from view
This allows the UI to automatically recover from transient network or
server issues without stopping background updates or requiring manual
restart.
---------
Signed-off-by: Ramon Figueiredo <ramon.fgrd@gmail.com>1 parent 5a57381 commit 1be2602
File tree
3 files changed
+49
-2
lines changed- cuegui/cuegui
- pycue/opencue
3 files changed
+49
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
| |||
484 | 485 | | |
485 | 486 | | |
486 | 487 | | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
487 | 498 | | |
488 | 499 | | |
| 500 | + | |
489 | 501 | | |
490 | 502 | | |
491 | 503 | | |
| |||
504 | 516 | | |
505 | 517 | | |
506 | 518 | | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
507 | 535 | | |
508 | | - | |
| 536 | + | |
509 | 537 | | |
510 | 538 | | |
511 | 539 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
213 | 214 | | |
214 | 215 | | |
215 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
216 | 227 | | |
217 | 228 | | |
218 | 229 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
65 | 72 | | |
66 | 73 | | |
67 | 74 | | |
| |||
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
76 | | - | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
0 commit comments