@rotorsoft/act-pg 0.19.0 → 0.20.1
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.
- package/README.md +3 -0
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -157,6 +157,9 @@ Calling `seed()` creates two tables:
|
|
|
157
157
|
- `at` - last processed event position
|
|
158
158
|
- `leased_by` / `leased_until` - distributed processing claim info
|
|
159
159
|
- `blocked` / `error` - error tracking for failed streams
|
|
160
|
+
- `priority` - scheduling priority (default 0; higher wins lagging-frontier ties — see [Priority lanes](https://rotorsoft.github.io/act-root/docs/architecture/priority-lanes))
|
|
161
|
+
|
|
162
|
+
The `priority` column is added by `seed()` via `ALTER TABLE ... ADD COLUMN IF NOT EXISTS`, so existing tables migrate transparently. A composite index on `(blocked, priority DESC, at)` supports the saturated-claim ORDER BY without a sort step.
|
|
160
163
|
|
|
161
164
|
## Competing Consumer Pattern
|
|
162
165
|
|
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rotorsoft/act-pg",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.20.1",
|
|
5
5
|
"description": "act pg adapters",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"typescript",
|
|
8
|
+
"event-sourcing",
|
|
9
|
+
"postgres",
|
|
10
|
+
"event-store",
|
|
11
|
+
"listen-notify"
|
|
12
|
+
],
|
|
6
13
|
"author": "rotorsoft",
|
|
7
14
|
"license": "MIT",
|
|
8
15
|
"repository": {
|