Commit 554454f
authored
Fix: Refine the wasted time during retries for
With 57 TaskGroups across four parallel branches, the retry wait alone wastes ~570 minutes (~9.5 hours)
This change improves the error handling within the ssh_tpu Airflow task to distinguish between critical SSH authentication failures and other command execution errors.
Solution:
- If any host fails with an `AuthenticationException`, the task is failed with a non-retryable `AirflowFailException`.
- If hosts fail due to other exceptions (e.g., `invoke.UnexpectedExit`), the original `fabric.group.GroupException` is re-raised. This allows Airflow's retry mechanism to handle these potentially transient issues as configured for the task.jetstream_benchmark_serving (GoogleCloudPlatform#1051)1 parent 1986f30 commit 554454f
2 files changed
Lines changed: 31 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
113 | 118 | | |
114 | 119 | | |
115 | 120 | | |
116 | 121 | | |
117 | 122 | | |
| 123 | + | |
118 | 124 | | |
119 | 125 | | |
120 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
404 | 405 | | |
405 | 406 | | |
406 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
407 | 429 | | |
408 | 430 | | |
409 | 431 | | |
| |||
414 | 436 | | |
415 | 437 | | |
416 | 438 | | |
417 | | - | |
418 | | - | |
| 439 | + | |
419 | 440 | | |
420 | | - | |
| 441 | + | |
421 | 442 | | |
422 | 443 | | |
423 | 444 | | |
| |||
0 commit comments