Commit 3efc1a9
authored
Clear aggregator queue when API key resolution fails to avoid retries… (#785)
Clear aggregator queue when API key resolution fails to avoid retries
and prevent wasted billing time.
Test:
| Scenario | Log | Observation |
|--------|--------|--------|
| Baseline+good DD_API_KEY | REPORT RequestId:
cac9fb53-c84f-4c4b-b5fb-f2965589e559 **Duration: 126.62 ms Billed
Duration: 127 ms** Memory Size: 1024 MB Max Memory Used: 94 MB | Normal
|
|Baseline+bad DD_API_KEY|REPORT RequestId:
bfff6cc0-3ab2-4a35-86a5-0ba29d1ba1d6 **Duration: 120000.00 ms Billed
Duration: 120000 ms** Memory Size: 1024 MB Max Memory Used: 90 MB
Status: timeout|Time out with excessive billed time|
|Change+good DD_API_KEY|REPORT RequestId:
58ef36bf-7b05-47da-8173-a204d0c74ff6 **Duration: 46.62 ms Billed
Duration: 47 ms** Memory Size: 1024 MB Max Memory Used: 94 MB|Normal|
|Change+bad DD_API_KEY|REPORT RequestId:
333cd454-6765-4817-98d9-95a9b754f567 **Duration: 67.33 ms Billed
Duration: 68 ms** Memory Size: 1024 MB Max Memory Used: 94 MB|Fail fast
w/o excessive billed time|
[Tracking
records](https://docs.google.com/spreadsheets/d/1G7Lq7e1Apr43beDQh6J4ekonixDMXWLImhYv90Umbls/edit?gid=831661199#gid=831661199)1 parent 9b458bc commit 3efc1a9
2 files changed
+12
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
86 | 92 | | |
87 | 93 | | |
88 | 94 | | |
| |||
0 commit comments