@onlineapps/service-wrapper 2.0.28 → 2.0.30
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 +1 -1
- package/src/ServiceWrapper.js +3 -18
package/package.json
CHANGED
package/src/ServiceWrapper.js
CHANGED
|
@@ -259,24 +259,9 @@ class ServiceWrapper {
|
|
|
259
259
|
await this.mqClient.connect();
|
|
260
260
|
console.log('MQ connector initialized');
|
|
261
261
|
|
|
262
|
-
//
|
|
263
|
-
//
|
|
264
|
-
//
|
|
265
|
-
if (this.config.wrapper?.mq?.initInfrastructureQueues !== false) {
|
|
266
|
-
try {
|
|
267
|
-
const { initInfrastructureQueues } = require('@onlineapps/conn-infra-mq').utils || {};
|
|
268
|
-
if (initInfrastructureQueues && this.mqClient._transport?.channel) {
|
|
269
|
-
await initInfrastructureQueues(this.mqClient._transport.channel, {
|
|
270
|
-
logger: this.logger || console
|
|
271
|
-
});
|
|
272
|
-
console.log('✓ Infrastructure queues initialized');
|
|
273
|
-
}
|
|
274
|
-
} catch (error) {
|
|
275
|
-
// If tool not available or fails, log warning but continue
|
|
276
|
-
// Infrastructure queues may have been created by other services
|
|
277
|
-
console.warn('⚠ Could not initialize infrastructure queues:', error.message);
|
|
278
|
-
}
|
|
279
|
-
}
|
|
262
|
+
// NOTE: Business services (ServiceWrapper) do NOT create infrastructure queues
|
|
263
|
+
// Infrastructure queues are created by infrastructure services (Monitoring Consumer, Gateway)
|
|
264
|
+
// Business services only consume from them - if they don't exist, that's an infrastructure problem
|
|
280
265
|
}
|
|
281
266
|
|
|
282
267
|
/**
|