Commit 3a8f9e8
authored
[HUD] add validation for api/utilization page, and set max retry amount if api fails (#7499)
Weirdly high load coming from this api, I see a bunch of calls in vercel
where its undefined, but since theres no check it goes to clickhouse and
fails
#7493 (comment)1 parent 3d54b84 commit 3a8f9e8
File tree
2 files changed
+15
-1
lines changed- torchci/pages
- api/utilization/[workflowId]/[jobId]
- utilization/[workflowId]/[jobId]/[attempt]
2 files changed
+15
-1
lines changedLines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
21 | 32 | | |
22 | 33 | | |
23 | 34 | | |
| |||
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| |||
0 commit comments