add NPROC for communication with updater
This commit is contained in:
parent
6ccc186e97
commit
9df9d1b75f
9 changed files with 220 additions and 6 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue