add NPROC for communication with updater

This commit is contained in:
Pakin 2025-09-02 17:47:30 +07:00
parent 6ccc186e97
commit 9df9d1b75f
9 changed files with 220 additions and 6 deletions

View file

@ -12,7 +12,10 @@ const heartbeatApiInfo = {
let heartbeatTask = CronJobs.doEveryMinute(() => {
Log.debug("[hb] test heartbeat");
Log.debug(`[hb] current running tasks: ${JSON.stringify(CronJobs.getAllRunning.size)}`);
heartbeatTask.stop();
client.publish("log", {
msg: "heartbeat",
status: 200
});
}, 'heartbeat');
heartbeatTask.on('stop-heartbeat', () => heartbeatTask.stop());