cc-core-cli 1.0.62 → 1.0.64
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
CHANGED
|
@@ -34,10 +34,12 @@ export class AppClusterService {
|
|
|
34
34
|
`A worker is now connected to ${address.address}:${address.port}`
|
|
35
35
|
);
|
|
36
36
|
const http: AxiosInstance = axios.create();
|
|
37
|
-
|
|
37
|
+
if (worker.process["env"].WORKER_NO == "1") {
|
|
38
|
+
http.get(`${CONST.INTERNAL_DOMAIN}/entities/init_data`);
|
|
39
|
+
http.get(`${CONST.INTERNAL_DOMAIN}/setting/update_version`);
|
|
40
|
+
}
|
|
38
41
|
http.get(`${CONST.INTERNAL_DOMAIN}/user_role/reload_system`);
|
|
39
42
|
http.get(`${CONST.INTERNAL_DOMAIN}/translate/generate`);
|
|
40
|
-
http.get(`${CONST.INTERNAL_DOMAIN}/setting/update_version`);
|
|
41
43
|
http.get(`${CONST.INTERNAL_DOMAIN}/health_check/init`);
|
|
42
44
|
});
|
|
43
45
|
// cluster.on("online", worker => {
|
|
@@ -207,6 +207,7 @@ async function initial(app: NestFastifyApplication) {
|
|
|
207
207
|
await refreshService(app, EntitiesService);
|
|
208
208
|
await refreshService(app, ScheduleActionService);
|
|
209
209
|
await refreshService(app, SettingService);
|
|
210
|
+
await refreshService(app, AttachmentService);
|
|
210
211
|
|
|
211
212
|
redisCache.set("START_TIME", moment().format("DD MMMM YYYY HH:mm"));
|
|
212
213
|
}
|