Commit cf67175
committed
fix(webapp): use prisma writer for cancelLostRaceRun's just-triggered run lookup
Same read-after-write pattern as the other lost-race re-reads:
the run was just triggered on the writer milliseconds before, so a
$replica.findFirst can return null due to replication lag. The null
silently no-ops the cancellation and leaks an orphan run that no
session will ever claim.1 parent 554940d commit cf67175
1 file changed
Lines changed: 4 additions & 4 deletions
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
362 | 362 | | |
363 | 363 | | |
364 | 364 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
| |||
0 commit comments