@exulu/backend 1.31.1 → 1.31.2
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/CHANGELOG.md +2 -2
- package/dist/index.cjs +8 -2
- package/dist/index.js +8 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [1.31.
|
|
1
|
+
## [1.31.2](https://github.com/Qventu/exulu-backend/compare/v1.31.1...v1.31.2) (2025-11-10)
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* redis
|
|
6
|
+
* minor exulu upgrade for redis connection ([7d20243](https://github.com/Qventu/exulu-backend/commit/7d2024397562e2feff9f3515eafbc46fcfd0ab94))
|
package/dist/index.cjs
CHANGED
|
@@ -67,6 +67,7 @@ var redisServer = {
|
|
|
67
67
|
// src/redis/client.ts
|
|
68
68
|
var client = {};
|
|
69
69
|
async function redisClient() {
|
|
70
|
+
console.log("[EXULU] redisServer:", redisServer);
|
|
70
71
|
if (!redisServer.host || !redisServer.port) {
|
|
71
72
|
return { client: null };
|
|
72
73
|
}
|
|
@@ -6650,8 +6651,13 @@ var createWorkers = async (agents, queues2, config, contexts, evals, tools, trac
|
|
|
6650
6651
|
throw new Error("No redis server configured in the environment, so cannot start worker.");
|
|
6651
6652
|
}
|
|
6652
6653
|
if (!redisConnection) {
|
|
6653
|
-
|
|
6654
|
-
|
|
6654
|
+
let url = "";
|
|
6655
|
+
if (redisServer.username) {
|
|
6656
|
+
url = `redis://${redisServer.username}:${redisServer.password}@${redisServer.host}:${redisServer.port}`;
|
|
6657
|
+
} else {
|
|
6658
|
+
url = `redis://${redisServer.host}:${redisServer.port}`;
|
|
6659
|
+
}
|
|
6660
|
+
redisConnection = new import_ioredis.default(url, {
|
|
6655
6661
|
enableOfflineQueue: true,
|
|
6656
6662
|
retryStrategy: function(times) {
|
|
6657
6663
|
return Math.max(Math.min(Math.exp(times), 2e4), 1e3);
|
package/dist/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var redisServer = {
|
|
|
15
15
|
// src/redis/client.ts
|
|
16
16
|
var client = {};
|
|
17
17
|
async function redisClient() {
|
|
18
|
+
console.log("[EXULU] redisServer:", redisServer);
|
|
18
19
|
if (!redisServer.host || !redisServer.port) {
|
|
19
20
|
return { client: null };
|
|
20
21
|
}
|
|
@@ -6617,8 +6618,13 @@ var createWorkers = async (agents, queues2, config, contexts, evals, tools, trac
|
|
|
6617
6618
|
throw new Error("No redis server configured in the environment, so cannot start worker.");
|
|
6618
6619
|
}
|
|
6619
6620
|
if (!redisConnection) {
|
|
6620
|
-
|
|
6621
|
-
|
|
6621
|
+
let url = "";
|
|
6622
|
+
if (redisServer.username) {
|
|
6623
|
+
url = `redis://${redisServer.username}:${redisServer.password}@${redisServer.host}:${redisServer.port}`;
|
|
6624
|
+
} else {
|
|
6625
|
+
url = `redis://${redisServer.host}:${redisServer.port}`;
|
|
6626
|
+
}
|
|
6627
|
+
redisConnection = new IORedis(url, {
|
|
6622
6628
|
enableOfflineQueue: true,
|
|
6623
6629
|
retryStrategy: function(times) {
|
|
6624
6630
|
return Math.max(Math.min(Math.exp(times), 2e4), 1e3);
|