Commit fa8f211
committed
Invalidate event cache on duplicate key error
When a DB duplicate key error indicates the event already exists, clear any cached null result so a subsequent fetch retrieves the newly created document. This change computes the event cache key via getEventCacheKey(projectId, uniqueEventHash) and deletes it (this.cache.del) before retrying handle(task), preventing stale null caches from causing missed event repetitions.1 parent 360e31a commit fa8f211
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
229 | 237 | | |
230 | 238 | | |
231 | 239 | | |
| |||
0 commit comments