vona-module-a-startup 5.0.16 → 5.0.18
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/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -57,7 +57,7 @@ let ServiceStartup = (_dec$3 = Service(), _dec2$3 = BeanInfo({
|
|
|
57
57
|
for (const instance of instances) {
|
|
58
58
|
const instanceName = instance.name;
|
|
59
59
|
// need not await
|
|
60
|
-
this.bean.executor.newCtx(async () => {
|
|
60
|
+
const res = this.bean.executor.newCtx(async () => {
|
|
61
61
|
await this.$scope.instance.service.instance.instanceStartup(instanceName, {
|
|
62
62
|
force: false
|
|
63
63
|
});
|
|
@@ -67,6 +67,9 @@ let ServiceStartup = (_dec$3 = Service(), _dec2$3 = BeanInfo({
|
|
|
67
67
|
},
|
|
68
68
|
instanceName
|
|
69
69
|
});
|
|
70
|
+
if (this.app.config.server.listen.disable) {
|
|
71
|
+
await res;
|
|
72
|
+
}
|
|
70
73
|
}
|
|
71
74
|
}
|
|
72
75
|
|
|
@@ -157,7 +160,9 @@ let ServiceStartup = (_dec$3 = Service(), _dec2$3 = BeanInfo({
|
|
|
157
160
|
}) || _class$3) || _class$3);
|
|
158
161
|
|
|
159
162
|
var _dec$2, _dec2$2, _class$2;
|
|
160
|
-
let CacheRedisStartupDebounce = (_dec$2 = CacheRedis(
|
|
163
|
+
let CacheRedisStartupDebounce = (_dec$2 = CacheRedis({
|
|
164
|
+
disableInstance: true
|
|
165
|
+
}), _dec2$2 = BeanInfo({
|
|
161
166
|
module: "a-startup"
|
|
162
167
|
}), _dec$2(_class$2 = _dec2$2(_class$2 = class CacheRedisStartupDebounce extends BeanCacheRedisBase {}) || _class$2) || _class$2);
|
|
163
168
|
|