@zintrust/workers 0.4.39 → 0.4.41
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/WorkerMetrics.js
CHANGED
|
@@ -30,9 +30,7 @@ const getValidClient = async () => {
|
|
|
30
30
|
throw ErrorFactory.createWorkerError('WorkerMetrics not initialized. Call initialize() first.');
|
|
31
31
|
}
|
|
32
32
|
// If no client, create one
|
|
33
|
-
|
|
34
|
-
redisClient = createRedisConnection(cachedConfig, 3, { subsystem: 'worker-metrics' });
|
|
35
|
-
}
|
|
33
|
+
redisClient ??= createRedisConnection(cachedConfig, 3, { subsystem: 'worker-metrics' });
|
|
36
34
|
const client = redisClient;
|
|
37
35
|
if (!client) {
|
|
38
36
|
throw ErrorFactory.createConnectionError('Failed to initialize Redis client');
|
package/dist/build-manifest.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/workers",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"buildDate": "2026-03-
|
|
3
|
+
"version": "0.4.41",
|
|
4
|
+
"buildDate": "2026-03-31T14:37:25.381Z",
|
|
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": "4c539a14",
|
|
12
12
|
"branch": "release"
|
|
13
13
|
},
|
|
14
14
|
"package": {
|
|
@@ -194,8 +194,8 @@
|
|
|
194
194
|
"sha256": "5b684f87668bba86825625c20dda162915674e8c0fe3c3a32e05a2d9951c985f"
|
|
195
195
|
},
|
|
196
196
|
"WorkerMetrics.js": {
|
|
197
|
-
"size":
|
|
198
|
-
"sha256": "
|
|
197
|
+
"size": 20624,
|
|
198
|
+
"sha256": "510585be25b41774d9efd922759f5cff6c1d6bb891515cad8222445dec6a98b6"
|
|
199
199
|
},
|
|
200
200
|
"WorkerRegistry.d.ts": {
|
|
201
201
|
"size": 3941,
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
},
|
|
232
232
|
"build-manifest.json": {
|
|
233
233
|
"size": 19595,
|
|
234
|
-
"sha256": "
|
|
234
|
+
"sha256": "4001b2714ed94060884116aca4cc53ac46334aa4dbf9e718aaebdad65ffd6b96"
|
|
235
235
|
},
|
|
236
236
|
"config/workerConfig.d.ts": {
|
|
237
237
|
"size": 132,
|
|
@@ -415,7 +415,7 @@
|
|
|
415
415
|
},
|
|
416
416
|
"index.js": {
|
|
417
417
|
"size": 2337,
|
|
418
|
-
"sha256": "
|
|
418
|
+
"sha256": "bfe511dc4d6219d056d3e49e717a0cfabc1310b3bcb4fbae25a5a6ebb522bdf2"
|
|
419
419
|
},
|
|
420
420
|
"register.d.ts": {
|
|
421
421
|
"size": 256,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zintrust/workers",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.41",
|
|
4
4
|
"description": "Worker orchestration and background job management for ZinTrust.",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"node": ">=20.0.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@zintrust/core": "^0.4.
|
|
43
|
+
"@zintrust/core": "^0.4.41",
|
|
44
44
|
"@zintrust/queue-monitor": "*",
|
|
45
45
|
"@zintrust/queue-redis": "*"
|
|
46
46
|
},
|
package/src/WorkerMetrics.ts
CHANGED
|
@@ -110,9 +110,7 @@ const getValidClient = async (): Promise<RedisConnection> => {
|
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
// If no client, create one
|
|
113
|
-
|
|
114
|
-
redisClient = createRedisConnection(cachedConfig, 3, { subsystem: 'worker-metrics' });
|
|
115
|
-
}
|
|
113
|
+
redisClient ??= createRedisConnection(cachedConfig, 3, { subsystem: 'worker-metrics' });
|
|
116
114
|
|
|
117
115
|
const client = redisClient;
|
|
118
116
|
if (!client) {
|