Commit a1a0a85
committed
revert(mollifier): use standard REDIS_* fallback and fail loud on misconfig
Two prior changes are reverted:
1. MOLLIFIER_REDIS_HOST (plus _PORT/_USERNAME/_PASSWORD/_TLS_DISABLED)
regain their `.transform((v) => v ?? process.env.REDIS_*)` fallback
to the main Redis cluster, matching the convention used elsewhere in
the codebase for dedicated-cluster env vars. Operators who don't set
a dedicated mollifier Redis fall back to the main one — that's the
accepted default.
2. getMollifierBuffer() no longer degrades to disabled with a warn log
when MOLLIFIER_ENABLED=1 but MOLLIFIER_REDIS_HOST is unset. The
buffer initialises normally (falling back to the main Redis if
configured), and if that fails the pod crashes loudly. Same for the
drainer: initializeMollifierDrainer() throws "env vars inconsistent"
if the buffer comes back null, surfacing the misconfig immediately
rather than silently leaving entries un-drained.
Operationally: silent degradation hides config errors from operators
and produces "why are no triggers being mollified?" debugging sessions.
Loud failure surfaces the same misconfig at deploy time via the pod's
health checks.1 parent 5610099 commit a1a0a85
3 files changed
Lines changed: 27 additions & 35 deletions
File tree
- apps/webapp/app
- v3/mollifier
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1032 | 1032 | | |
1033 | 1033 | | |
1034 | 1034 | | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
| 1035 | + | |
| 1036 | + | |
| 1037 | + | |
| 1038 | + | |
| 1039 | + | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
1045 | 1054 | | |
1046 | 1055 | | |
1047 | 1056 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 29 | | |
34 | 30 | | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | 31 | | |
50 | 32 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
0 commit comments