@exulu/backend 1.31.0 → 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 +3 -3
- package/dist/index.cjs +16 -4
- package/dist/index.js +16 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
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
|
-
*
|
|
6
|
+
* minor exulu upgrade for redis connection ([7d20243](https://github.com/Qventu/exulu-backend/commit/7d2024397562e2feff9f3515eafbc46fcfd0ab94))
|
package/dist/index.cjs
CHANGED
|
@@ -60,18 +60,25 @@ var import_redis = require("redis");
|
|
|
60
60
|
var redisServer = {
|
|
61
61
|
host: `${process.env.REDIS_HOST}`,
|
|
62
62
|
port: process.env.REDIS_PORT,
|
|
63
|
-
password: process.env.REDIS_PASSWORD || void 0
|
|
63
|
+
password: process.env.REDIS_PASSWORD || void 0,
|
|
64
|
+
username: process.env.REDIS_USER || void 0
|
|
64
65
|
};
|
|
65
66
|
|
|
66
67
|
// src/redis/client.ts
|
|
67
68
|
var client = {};
|
|
68
69
|
async function redisClient() {
|
|
70
|
+
console.log("[EXULU] redisServer:", redisServer);
|
|
69
71
|
if (!redisServer.host || !redisServer.port) {
|
|
70
72
|
return { client: null };
|
|
71
73
|
}
|
|
72
74
|
if (!client["exulu"]) {
|
|
73
75
|
try {
|
|
74
|
-
|
|
76
|
+
let url = "";
|
|
77
|
+
if (redisServer.username) {
|
|
78
|
+
url = `redis://${redisServer.username}:${redisServer.password}@${redisServer.host}:${redisServer.port}`;
|
|
79
|
+
} else {
|
|
80
|
+
url = `redis://${redisServer.host}:${redisServer.port}`;
|
|
81
|
+
}
|
|
75
82
|
client["exulu"] = (0, import_redis.createClient)({
|
|
76
83
|
url
|
|
77
84
|
});
|
|
@@ -6644,8 +6651,13 @@ var createWorkers = async (agents, queues2, config, contexts, evals, tools, trac
|
|
|
6644
6651
|
throw new Error("No redis server configured in the environment, so cannot start worker.");
|
|
6645
6652
|
}
|
|
6646
6653
|
if (!redisConnection) {
|
|
6647
|
-
|
|
6648
|
-
|
|
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, {
|
|
6649
6661
|
enableOfflineQueue: true,
|
|
6650
6662
|
retryStrategy: function(times) {
|
|
6651
6663
|
return Math.max(Math.min(Math.exp(times), 2e4), 1e3);
|
package/dist/index.js
CHANGED
|
@@ -8,18 +8,25 @@ import { createClient } from "redis";
|
|
|
8
8
|
var redisServer = {
|
|
9
9
|
host: `${process.env.REDIS_HOST}`,
|
|
10
10
|
port: process.env.REDIS_PORT,
|
|
11
|
-
password: process.env.REDIS_PASSWORD || void 0
|
|
11
|
+
password: process.env.REDIS_PASSWORD || void 0,
|
|
12
|
+
username: process.env.REDIS_USER || void 0
|
|
12
13
|
};
|
|
13
14
|
|
|
14
15
|
// src/redis/client.ts
|
|
15
16
|
var client = {};
|
|
16
17
|
async function redisClient() {
|
|
18
|
+
console.log("[EXULU] redisServer:", redisServer);
|
|
17
19
|
if (!redisServer.host || !redisServer.port) {
|
|
18
20
|
return { client: null };
|
|
19
21
|
}
|
|
20
22
|
if (!client["exulu"]) {
|
|
21
23
|
try {
|
|
22
|
-
|
|
24
|
+
let url = "";
|
|
25
|
+
if (redisServer.username) {
|
|
26
|
+
url = `redis://${redisServer.username}:${redisServer.password}@${redisServer.host}:${redisServer.port}`;
|
|
27
|
+
} else {
|
|
28
|
+
url = `redis://${redisServer.host}:${redisServer.port}`;
|
|
29
|
+
}
|
|
23
30
|
client["exulu"] = createClient({
|
|
24
31
|
url
|
|
25
32
|
});
|
|
@@ -6611,8 +6618,13 @@ var createWorkers = async (agents, queues2, config, contexts, evals, tools, trac
|
|
|
6611
6618
|
throw new Error("No redis server configured in the environment, so cannot start worker.");
|
|
6612
6619
|
}
|
|
6613
6620
|
if (!redisConnection) {
|
|
6614
|
-
|
|
6615
|
-
|
|
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, {
|
|
6616
6628
|
enableOfflineQueue: true,
|
|
6617
6629
|
retryStrategy: function(times) {
|
|
6618
6630
|
return Math.max(Math.min(Math.exp(times), 2e4), 1e3);
|