@zintrust/workers 2.1.3 → 2.1.6
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/dist/WorkerFactory.js
CHANGED
|
@@ -1866,12 +1866,7 @@ const resolveWorkerOptions = (config, autoStart) => {
|
|
|
1866
1866
|
const redisConfig = resolveRedisConfigWithFallback(config.infrastructure?.redis, undefined, 'Worker requires a connection. Provide options.connection or infrastructure.redis config', 'infrastructure.redis');
|
|
1867
1867
|
return {
|
|
1868
1868
|
...options,
|
|
1869
|
-
connection: {
|
|
1870
|
-
host: redisConfig.host,
|
|
1871
|
-
port: redisConfig.port,
|
|
1872
|
-
db: redisConfig.db,
|
|
1873
|
-
password: redisConfig.password,
|
|
1874
|
-
},
|
|
1869
|
+
connection: createRedisConnection(redisConfig, 3, { subsystem: 'worker-queue' }),
|
|
1875
1870
|
};
|
|
1876
1871
|
};
|
|
1877
1872
|
const buildDefaultObservabilityConfig = () => ({
|
package/dist/build-manifest.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/workers",
|
|
3
3
|
"version": "2.1.3",
|
|
4
|
-
"buildDate": "2026-05-
|
|
4
|
+
"buildDate": "2026-05-27T19:44:47.669Z",
|
|
5
5
|
"buildEnvironment": {
|
|
6
6
|
"node": "v22.22.1",
|
|
7
7
|
"platform": "darwin",
|
|
8
8
|
"arch": "arm64"
|
|
9
9
|
},
|
|
10
10
|
"git": {
|
|
11
|
-
"commit": "
|
|
11
|
+
"commit": "9d3882c5",
|
|
12
12
|
"branch": "release"
|
|
13
13
|
},
|
|
14
14
|
"package": {
|
|
@@ -178,8 +178,8 @@
|
|
|
178
178
|
"sha256": "ea53fa39f3cec0f5841cf1ff556a41a70747b40cc64e8c9190e10ff360acc786"
|
|
179
179
|
},
|
|
180
180
|
"WorkerFactory.js": {
|
|
181
|
-
"size":
|
|
182
|
-
"sha256": "
|
|
181
|
+
"size": 111659,
|
|
182
|
+
"sha256": "9a998a78da47057091481e218caef68cdc30be3a429c96af92fdad0a4d26c626"
|
|
183
183
|
},
|
|
184
184
|
"WorkerInit.d.ts": {
|
|
185
185
|
"size": 3284,
|
|
@@ -403,7 +403,7 @@
|
|
|
403
403
|
},
|
|
404
404
|
"index.js": {
|
|
405
405
|
"size": 2336,
|
|
406
|
-
"sha256": "
|
|
406
|
+
"sha256": "5855354250506002953a6e741cb4b3e032697de04f23d0c8b94efe4ba41a51e3"
|
|
407
407
|
},
|
|
408
408
|
"queueMonitorHistory.d.ts": {
|
|
409
409
|
"size": 433,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/workers",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.6",
|
|
4
4
|
"description": "Worker orchestration and background job management for ZinTrust.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"dependencies": {
|
|
70
70
|
"@opentelemetry/api": "^1.9.1",
|
|
71
71
|
"hot-shots": "^14.3.1",
|
|
72
|
-
"ioredis": "^5.
|
|
72
|
+
"ioredis": "^5.11.0",
|
|
73
73
|
"prom-client": "^15.1.3",
|
|
74
74
|
"simple-statistics": "^7.8.9"
|
|
75
75
|
}
|
|
76
|
-
}
|
|
76
|
+
}
|
package/src/WorkerFactory.ts
CHANGED
|
@@ -2640,12 +2640,7 @@ const resolveWorkerOptions = (config: WorkerFactoryConfig, autoStart: boolean):
|
|
|
2640
2640
|
|
|
2641
2641
|
return {
|
|
2642
2642
|
...options,
|
|
2643
|
-
connection: {
|
|
2644
|
-
host: redisConfig.host,
|
|
2645
|
-
port: redisConfig.port,
|
|
2646
|
-
db: redisConfig.db,
|
|
2647
|
-
password: redisConfig.password,
|
|
2648
|
-
},
|
|
2643
|
+
connection: createRedisConnection(redisConfig, 3, { subsystem: 'worker-queue' }),
|
|
2649
2644
|
};
|
|
2650
2645
|
};
|
|
2651
2646
|
|
|
@@ -225,7 +225,7 @@ export const RedisWorkerStore = Object.freeze({
|
|
|
225
225
|
if (!raw) return;
|
|
226
226
|
const current = deserialize(raw);
|
|
227
227
|
const updated = mergeRecord(current, patch);
|
|
228
|
-
updates.push(names[index]
|
|
228
|
+
updates.push(names[index], serialize(updated));
|
|
229
229
|
});
|
|
230
230
|
if (updates.length === 0) return;
|
|
231
231
|
await client.hset(key, ...updates);
|