@514labs/moose-lib 0.6.267-ci-3-g2d546d7e → 0.6.267-ci-6-g7e4e6a41
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/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +12 -1
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +12 -1
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/moose-runner.mjs
CHANGED
|
@@ -959,6 +959,17 @@ var createMainRouter = async (publicKey, clickhouseClient, temporalClient, apisD
|
|
|
959
959
|
};
|
|
960
960
|
};
|
|
961
961
|
var runApis = async (config) => {
|
|
962
|
+
if (config.isDmv2) {
|
|
963
|
+
const preloadStart = Date.now();
|
|
964
|
+
console.log(
|
|
965
|
+
`[Primary ${process.pid}] Pre-loading index.ts before forking workers...`
|
|
966
|
+
);
|
|
967
|
+
await getApis2();
|
|
968
|
+
await getWebApps2();
|
|
969
|
+
console.log(
|
|
970
|
+
`[Primary ${process.pid}] Index pre-loaded in ${Date.now() - preloadStart}ms`
|
|
971
|
+
);
|
|
972
|
+
}
|
|
962
973
|
const apisCluster = new Cluster({
|
|
963
974
|
maxWorkerCount: (config.workerCount ?? 0) > 0 ? config.workerCount : void 0,
|
|
964
975
|
workerStart: async () => {
|
|
@@ -990,7 +1001,7 @@ var runApis = async (config) => {
|
|
|
990
1001
|
toClientConfig(config.clickhouseConfig)
|
|
991
1002
|
);
|
|
992
1003
|
console.log(
|
|
993
|
-
`${workerInfo} workerStart: ClickHouse
|
|
1004
|
+
`${workerInfo} workerStart: ClickHouse client initialized in ${Date.now() - clickhouseStart}ms`
|
|
994
1005
|
);
|
|
995
1006
|
let publicKey;
|
|
996
1007
|
if (config.jwtConfig?.secret) {
|