@onlineapps/service-wrapper 2.0.51 → 2.0.53
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 +5 -3
- package/src/ServiceWrapper.js +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/service-wrapper",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.53",
|
|
4
4
|
"description": "Thin orchestration layer for microservices - delegates all infrastructure concerns to specialized connectors",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
"test:coverage": "jest --coverage",
|
|
12
12
|
"test:mocked": "node test/run-tests.js",
|
|
13
13
|
"docs": "jsdoc2md --files src/**/*.js > API.md",
|
|
14
|
-
"docs:html": "jsdoc -c jsdoc.json -d docs/html"
|
|
14
|
+
"docs:html": "jsdoc -c jsdoc.json -d docs/html",
|
|
15
|
+
"prepublishOnly": "cd $(git rev-parse --show-toplevel) && bash scripts/pre-publish-compatibility-check.sh shared/connector/service-wrapper",
|
|
16
|
+
"postpublish": "cd $(git rev-parse --show-toplevel) && bash scripts/update-manifest-from-npm.sh && bash scripts/update-all-services.sh"
|
|
15
17
|
},
|
|
16
18
|
"keywords": [
|
|
17
19
|
"microservices",
|
|
@@ -33,7 +35,7 @@
|
|
|
33
35
|
"@onlineapps/conn-orch-orchestrator": "^1.0.1",
|
|
34
36
|
"@onlineapps/conn-orch-registry": "^1.1.25",
|
|
35
37
|
"@onlineapps/conn-orch-validator": "^2.0.0",
|
|
36
|
-
"@onlineapps/service-common": "^1.0.
|
|
38
|
+
"@onlineapps/service-common": "^1.0.4",
|
|
37
39
|
"@onlineapps/monitoring-core": "^1.0.0"
|
|
38
40
|
},
|
|
39
41
|
"devDependencies": {
|
package/src/ServiceWrapper.js
CHANGED
|
@@ -26,7 +26,6 @@ const { ValidationOrchestrator } = require('@onlineapps/conn-orch-validator');
|
|
|
26
26
|
const INFRA_QUEUE_OWNERS = {
|
|
27
27
|
'workflow.init': 'Gateway (api_gateway)',
|
|
28
28
|
'registry.register': 'Registry (api_services_registry)',
|
|
29
|
-
'registry.heartbeats': 'Registry (api_services_registry)',
|
|
30
29
|
'validation.requests': 'Validator (api_services_validator)',
|
|
31
30
|
'workflow.completed': 'Delivery Dispatcher (api_delivery_dispatcher)',
|
|
32
31
|
'workflow.failed': 'Delivery Dispatcher (api_delivery_dispatcher)',
|
|
@@ -153,7 +152,8 @@ class ServiceWrapper {
|
|
|
153
152
|
*/
|
|
154
153
|
async _waitForInfrastructureGate(context) {
|
|
155
154
|
const { waitForInfrastructureReady } = require('@onlineapps/service-common');
|
|
156
|
-
const
|
|
155
|
+
const { requireEnv } = require('@onlineapps/service-common');
|
|
156
|
+
const redisUrl = this.config.wrapper?.cache?.url || requireEnv('REDIS_URL', 'Redis connection URL');
|
|
157
157
|
const maxWait = parseInt(process.env.INFRASTRUCTURE_HEALTH_WAIT_MAX_TIME) || 300000;
|
|
158
158
|
const checkInterval = parseInt(process.env.INFRASTRUCTURE_HEALTH_WAIT_CHECK_INTERVAL) || 5000;
|
|
159
159
|
|
|
@@ -902,7 +902,6 @@ class ServiceWrapper {
|
|
|
902
902
|
const requiredInfrastructureQueues = [
|
|
903
903
|
'workflow.init', // Gateway responsibility
|
|
904
904
|
'registry.register', // Registry responsibility
|
|
905
|
-
'registry.heartbeats' // Registry responsibility
|
|
906
905
|
];
|
|
907
906
|
|
|
908
907
|
// Optional infrastructure queues (may not exist if services are not running)
|