Commit 67163dd
fix(webapp): don't let an unreachable run-ops shard crash webapp startup
The run-ops client factory eagerly $connects for warm-up, but only caught the
rejection under NODE_ENV=test — outside test an unreachable shard/run-ops DB at
boot surfaced as an unhandled promise rejection. Always catch and log instead;
Prisma reconnects lazily on first query, so one unreachable shard must not take
down startup. Scoped to the run-ops factory only; the control-plane/legacy
builders are unchanged, so the RUN_OPS_SHARDS-unset path stays byte-identical.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 908fcb5 commit 67163dd
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | | - | |
1128 | | - | |
1129 | | - | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
1133 | 1134 | | |
1134 | 1135 | | |
1135 | 1136 | | |
| |||
0 commit comments