Commit 28f2170
authored
[iris] Use lightweight GetJobState for Fray actor polling (#5021)
FrayActorJob.wait_ready and is_done were calling the heavy GetJobStatus
RPC on every 0.5s tick just to read .state, pairing 1:1 with the
GetJobState polls from wait_for_job. Switch both to the lightweight
state RPC, back off from 0.1s to 5s between polls, and add
IrisClient.job_state(job_id) plus wire Job.state through it. The full
JobStatus is now fetched only on the terminal-error path where the error
message is actually needed.1 parent c2df1e7 commit 28f2170
File tree
3 files changed
+47
-54
lines changed- lib
- fray/src/fray/v2
- iris/src/iris/client
3 files changed
+47
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
477 | 478 | | |
478 | 479 | | |
479 | 480 | | |
480 | | - | |
| 481 | + | |
481 | 482 | | |
482 | 483 | | |
483 | 484 | | |
| |||
487 | 488 | | |
488 | 489 | | |
489 | 490 | | |
490 | | - | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
491 | 494 | | |
492 | | - | |
493 | | - | |
494 | | - | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
495 | 498 | | |
496 | 499 | | |
497 | 500 | | |
498 | | - | |
| 501 | + | |
499 | 502 | | |
500 | 503 | | |
501 | 504 | | |
502 | 505 | | |
503 | 506 | | |
504 | 507 | | |
505 | | - | |
| 508 | + | |
506 | 509 | | |
507 | 510 | | |
508 | 511 | | |
509 | 512 | | |
510 | | - | |
511 | | - | |
| 513 | + | |
512 | 514 | | |
513 | 515 | | |
514 | 516 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
| 229 | + | |
234 | 230 | | |
235 | 231 | | |
236 | 232 | | |
237 | | - | |
238 | | - | |
| 233 | + | |
| 234 | + | |
239 | 235 | | |
240 | 236 | | |
241 | 237 | | |
| |||
706 | 702 | | |
707 | 703 | | |
708 | 704 | | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
709 | 716 | | |
710 | 717 | | |
711 | 718 | | |
| |||
0 commit comments