mirror of
https://github.com/danbulant/Shasha
synced 2026-07-07 03:51:09 +00:00
remove unnecessary log
This commit is contained in:
parent
5294e897ee
commit
639e15e95a
1 changed files with 3 additions and 4 deletions
|
|
@ -65,12 +65,11 @@ async function reset() {
|
||||||
await jobManager.stop().catch(console.error);
|
await jobManager.stop().catch(console.error);
|
||||||
for (const job of jobs) {
|
for (const job of jobs) {
|
||||||
await jobManager.remove(job.name).catch(console.error);
|
await jobManager.remove(job.name).catch(console.error);
|
||||||
console.log("REMOVED " + job.name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await jobLoad();
|
await jobLoad();
|
||||||
jobManager.add(jobs);
|
jobManager.add(jobs);
|
||||||
console.log("SCHEDULER REFRESHED");
|
console.log("JOBS REFRESHED");
|
||||||
return jobStart();
|
return jobStart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -90,7 +89,7 @@ async function jobLoad() {
|
||||||
};
|
};
|
||||||
jobs.push(rsttm);
|
jobs.push(rsttm);
|
||||||
console.log((jobs.length - 1) + " JOBS LOADED");
|
console.log((jobs.length - 1) + " JOBS LOADED");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
function jobStart() {
|
function jobStart() {
|
||||||
|
|
@ -100,7 +99,7 @@ function jobStart() {
|
||||||
if (v.date?.valueOf() < CHK) jobManager.run(v.name);
|
if (v.date?.valueOf() < CHK) jobManager.run(v.name);
|
||||||
});
|
});
|
||||||
console.log("SCHEDULER STARTED");
|
console.log("SCHEDULER STARTED");
|
||||||
return 1;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { createSchedule, init, reset }
|
module.exports = { createSchedule, init, reset }
|
||||||
Loading…
Reference in a new issue