Commit 7940e30
fix(data-drains): isolate per-org enterprise check failures in dispatcher
A throw from isOrganizationOnEnterprisePlan (Stripe outage, DB timeout) for
one org used to propagate out of the for-loop and abort the whole dispatch
batch. Wrap the check in try-catch so a single bad lookup just skips that
drain — the next cron tick retries it.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 5c67e99 commit 7940e30
1 file changed
Lines changed: 15 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
107 | 121 | | |
108 | 122 | | |
109 | 123 | | |
| |||
0 commit comments