Repository navigation
Commit 89431c7
fix(webapp): bound metadata flush retries, add optional Redis buffer
The metadata flusher now gives up on a run after a bounded number of
version conflicts and comes back to it on the next flush, so one parent
being updated by many children at once no longer stalls metadata updates
for other runs. Operations for a run that no longer exists are dropped.
Buffered parent and root operations can optionally live in Redis instead
of process memory, so they survive a webapp restart and only one webapp
instance writes a given run at a time:
```bash
BATCH_METADATA_OPERATIONS_BUFFER_BACKEND=redis
METADATA_BUFFER_REDIS_HOST=your-redis-host # defaults to REDIS_HOST
```
The default is still the in-process buffer.
Mono-RevId: 685c35d1d5780cb0a2a19b69da8b7308e3f911a01 parent c49fd05 commit 89431c7
8 files changed
Lines changed: 2958 additions & 109 deletions
File tree
- .server-changes
- apps/webapp
- app
- routes
- services/metadata
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
1147 | 1173 | | |
1148 | 1174 | | |
1149 | 1175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | | - | |
| 88 | + | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
96 | 101 | | |
97 | 102 | | |
98 | 103 | | |
| |||
0 commit comments