@adonis-agora/durable 0.56.2 → 0.56.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/assets/spa/assets/{index-9kO8tWjg.js → index-BULnCUuC.js} +4 -4
  3. package/dist/assets/spa/assets/index-BULnCUuC.js.map +1 -0
  4. package/dist/assets/spa/index.html +1 -1
  5. package/dist/src/admission-redis/redis-admission-backend.d.ts.map +1 -1
  6. package/dist/src/admission-redis/redis-admission-backend.js +6 -3
  7. package/dist/src/admission-redis/redis-admission-backend.js.map +1 -1
  8. package/dist/src/dashboard/compat.d.ts.map +1 -1
  9. package/dist/src/dashboard/compat.js +16 -7
  10. package/dist/src/dashboard/compat.js.map +1 -1
  11. package/dist/src/dashboard/handlers.d.ts.map +1 -1
  12. package/dist/src/dashboard/handlers.js +5 -1
  13. package/dist/src/dashboard/handlers.js.map +1 -1
  14. package/dist/src/dashboard/index.d.ts +1 -1
  15. package/dist/src/dashboard/index.js +1 -1
  16. package/dist/src/engine.d.ts +19 -4
  17. package/dist/src/engine.d.ts.map +1 -1
  18. package/dist/src/engine.js +99 -18
  19. package/dist/src/engine.js.map +1 -1
  20. package/dist/src/index.d.ts +1 -1
  21. package/dist/src/index.js +1 -1
  22. package/dist/src/interfaces.d.ts +3 -0
  23. package/dist/src/interfaces.d.ts.map +1 -1
  24. package/dist/src/run-detail-summary.d.ts.map +1 -1
  25. package/dist/src/run-detail-summary.js +23 -14
  26. package/dist/src/run-detail-summary.js.map +1 -1
  27. package/dist/src/singleton-gate.d.ts +1 -1
  28. package/dist/src/singleton-gate.d.ts.map +1 -1
  29. package/dist/src/singleton-gate.js +7 -6
  30. package/dist/src/singleton-gate.js.map +1 -1
  31. package/dist/src/stores/lucid-schema.d.ts +1 -1
  32. package/dist/src/stores/lucid-schema.d.ts.map +1 -1
  33. package/dist/src/stores/lucid-schema.js +26 -1
  34. package/dist/src/stores/lucid-schema.js.map +1 -1
  35. package/dist/src/stores/lucid.d.ts.map +1 -1
  36. package/dist/src/stores/lucid.js +45 -8
  37. package/dist/src/stores/lucid.js.map +1 -1
  38. package/dist/src/telescope/data-providers.d.ts.map +1 -1
  39. package/dist/src/telescope/data-providers.js +27 -3
  40. package/dist/src/telescope/data-providers.js.map +1 -1
  41. package/package.json +3 -3
  42. package/dist/assets/spa/assets/index-9kO8tWjg.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @adonis-agora/durable
2
2
 
3
+ ## 0.56.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#421](https://github.com/DavideCarvalho/adonis-agora-durable/pull/421) [`da8dd5e`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/da8dd5e859c68dbc9eebf25af92d4fcf9f9caa1e) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Step events reach other instances in batches. The engine published every lifecycle event on the
8
+ control plane, one message each, and a wide fan emits two per step: a 40,000-step fan published 80,000
9
+ messages, each delivered to every pod, and each Redis `PUBLISH` stalled every other command behind it.
10
+ Step events now go out, in emit order, in one `{ kind: 'events', events }` message per batch (the
11
+ events emitted while a publish is in flight share the next one, up to 500). A run's own events still go
12
+ out one per message. An instance that does not know the `events` kind ignores it and only misses other
13
+ instances' step events, which no engine logic reads. Interoperable with `@dudousxd/nestjs-durable-core`
14
+ 0.85.12, which sends and reads the same message.
15
+
16
+ - [#420](https://github.com/DavideCarvalho/adonis-agora-durable/pull/420) [`5eb8655`](https://github.com/DavideCarvalho/adonis-agora-durable/commit/5eb86558b39e636c9ea1df043618518e46b5057b) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Performance sweep, no API or behaviour change:
17
+
18
+ - The per-step heartbeat write throttle no longer resets wholesale past 1,024 entries (which a fleet with more steps in flight than that hit every few seconds, turning the throttle off); expired entries are dropped and the map is capped at 16,384, oldest first. The lease re-arm throttle and the admitted-queue fallback map are bounded the same way (the latter previously leaked when a result landed on another pod).
19
+ - Postgres: `durable_signal_waiters.token` and `durable_buffered_signals.token` get a `varchar_pattern_ops` index, so the `token LIKE 'prefix%'` reads (event publish, a fan's buffered child completions, the entity sweep) stop scanning the whole table under a non-`C` collation. Schema revision 5.
20
+ - Singleton admission reads only the columns its decision needs under `FOR UPDATE` (not every waiter's payloads); the `maxQueueDepth` check counts instead of loading runs.
21
+ - The console's tag/attribute pickers scan only `tags`/`search_attributes` instead of every run's payloads; column pickers are one grouped pass instead of a self semi-join.
22
+ - The stalled-run sweep reads only pending checkpoints; run-detail and fan-page polls read the run and its checkpoint buckets in one round trip; `/compat` reads each group's descriptors at once; `/metrics` reads worker health alongside the counts; Telescope widgets share concurrent identical reads.
23
+ - Redis admission `release` sends its HDEL and PUBLISH back to back (one round trip).
24
+
3
25
  ## 0.56.2
4
26
 
5
27
  ### Patch Changes