@onlineapps/infrastructure-tools 1.0.22 → 1.0.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/infrastructure-tools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.23",
|
|
4
4
|
"description": "Infrastructure orchestration utilities for OA Drive infrastructure services (health tracking, queue initialization, service discovery)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"author": "OnlineApps",
|
|
21
21
|
"license": "MIT",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@onlineapps/mq-client-core": "^1.0.
|
|
24
|
-
"@onlineapps/service-common": "^1.0.
|
|
23
|
+
"@onlineapps/mq-client-core": "^1.0.47",
|
|
24
|
+
"@onlineapps/service-common": "^1.0.5",
|
|
25
25
|
"uuid": "^9.0.1"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
@@ -96,8 +96,17 @@ async function initInfrastructureQueues(channel, options = {}) {
|
|
|
96
96
|
|
|
97
97
|
// Get unified configuration
|
|
98
98
|
logger.log(`[QueueInit] Getting config for ${queueName}...`);
|
|
99
|
-
|
|
100
|
-
|
|
99
|
+
let config;
|
|
100
|
+
try {
|
|
101
|
+
config = queueConfig.getInfrastructureQueueConfig(queueName);
|
|
102
|
+
logger.log(`[QueueInit] Config for ${queueName}:`, JSON.stringify(config));
|
|
103
|
+
} catch (configError) {
|
|
104
|
+
logger.error(`[QueueInit] ✗ Failed to get config for ${queueName}:`, {
|
|
105
|
+
error: configError.message,
|
|
106
|
+
stack: configError.stack
|
|
107
|
+
});
|
|
108
|
+
throw configError;
|
|
109
|
+
}
|
|
101
110
|
|
|
102
111
|
// CRITICAL: First check if queue exists and what parameters it has
|
|
103
112
|
// This prevents 406 errors by proactively deleting queues with wrong parameters
|