Repository navigation
Commit d602fff
committed
fix(webapp): limit convergence compares enforced values, zero thresholds never read as at-limit
The freshness re-check after an override sync converges on the values the
engine enforces instead of updatedAt, since Prisma's millisecond updatedAt
makes two same-millisecond writes indistinguishable; identical values mean
identical engine state so skipping them is safe. A zero at-limit threshold
(a paused limit, or a queue overridden to 0) no longer shows the at-limit
warning, matching the health badge. The override tests reset mocks per test
and assert the exact compensating call so they fail without the fix.1 parent 2a8ef37 commit d602fff
3 files changed
Lines changed: 51 additions & 19 deletions
File tree
- apps/webapp
- app
- routes/_app.orgs.$organizationSlug.projects.$projectParam.env.$envParam.concurrency
- v3/services
- test
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
782 | 782 | | |
783 | 783 | | |
784 | 784 | | |
| 785 | + | |
| 786 | + | |
785 | 787 | | |
786 | | - | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
787 | 791 | | |
788 | 792 | | |
789 | 793 | | |
| |||
1970 | 1974 | | |
1971 | 1975 | | |
1972 | 1976 | | |
| 1977 | + | |
| 1978 | + | |
1973 | 1979 | | |
1974 | | - | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
1975 | 1983 | | |
1976 | 1984 | | |
1977 | 1985 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
132 | 135 | | |
133 | 136 | | |
134 | 137 | | |
| |||
387 | 390 | | |
388 | 391 | | |
389 | 392 | | |
| 393 | + | |
| 394 | + | |
390 | 395 | | |
391 | | - | |
392 | | - | |
| 396 | + | |
| 397 | + | |
393 | 398 | | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
399 | 408 | | |
400 | 409 | | |
401 | 410 | | |
402 | 411 | | |
403 | 412 | | |
404 | | - | |
| 413 | + | |
405 | 414 | | |
406 | 415 | | |
407 | 416 | | |
408 | | - | |
| 417 | + | |
409 | 418 | | |
410 | 419 | | |
411 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
412 | 426 | | |
413 | 427 | | |
414 | 428 | | |
| |||
423 | 437 | | |
424 | 438 | | |
425 | 439 | | |
426 | | - | |
| 440 | + | |
427 | 441 | | |
428 | 442 | | |
429 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
85 | 95 | | |
86 | 96 | | |
87 | 97 | | |
| |||
215 | 225 | | |
216 | 226 | | |
217 | 227 | | |
218 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
219 | 231 | | |
220 | 232 | | |
| 233 | + | |
221 | 234 | | |
222 | | - | |
223 | 235 | | |
224 | 236 | | |
225 | 237 | | |
| |||
248 | 260 | | |
249 | 261 | | |
250 | 262 | | |
251 | | - | |
252 | | - | |
253 | 263 | | |
254 | 264 | | |
255 | 265 | | |
| |||
0 commit comments