2022-06-29 19:29:20 +00:00
|
|
|
const { parentPort, isMainThread } = require('worker_threads');
|
|
|
|
if(isMainThread){
|
|
|
|
console.log(`Shinobi now runs cron.js as a worker process from camera.js.`)
|
|
|
|
console.error(`Shinobi now runs cron.js as a worker process from camera.js.`)
|
|
|
|
setInterval(() => {
|
|
|
|
// console.log(`Please turn off cron.js process.`)
|
|
|
|
},1000 * 60 * 60 * 24 * 7)
|
|
|
|
return;
|
2018-06-12 21:27:01 +00:00
|
|
|
}
|