@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.js
CHANGED
|
@@ -972,6 +972,17 @@ var createMainRouter = async (publicKey, clickhouseClient, temporalClient, apisD
|
|
|
972
972
|
};
|
|
973
973
|
};
|
|
974
974
|
var runApis = async (config) => {
|
|
975
|
+
if (config.isDmv2) {
|
|
976
|
+
const preloadStart = Date.now();
|
|
977
|
+
console.log(
|
|
978
|
+
`[Primary ${process.pid}] Pre-loading index.ts before forking workers...`
|
|
979
|
+
);
|
|
980
|
+
await getApis2();
|
|
981
|
+
await getWebApps2();
|
|
982
|
+
console.log(
|
|
983
|
+
`[Primary ${process.pid}] Index pre-loaded in ${Date.now() - preloadStart}ms`
|
|
984
|
+
);
|
|
985
|
+
}
|
|
975
986
|
const apisCluster = new Cluster({
|
|
976
987
|
maxWorkerCount: (config.workerCount ?? 0) > 0 ? config.workerCount : void 0,
|
|
977
988
|
workerStart: async () => {
|
|
@@ -1003,7 +1014,7 @@ var runApis = async (config) => {
|
|
|
1003
1014
|
toClientConfig(config.clickhouseConfig)
|
|
1004
1015
|
);
|
|
1005
1016
|
console.log(
|
|
1006
|
-
`${workerInfo} workerStart: ClickHouse
|
|
1017
|
+
`${workerInfo} workerStart: ClickHouse client initialized in ${Date.now() - clickhouseStart}ms`
|
|
1007
1018
|
);
|
|
1008
1019
|
let publicKey;
|
|
1009
1020
|
if (config.jwtConfig?.secret) {
|