adding inforamtion about when the processor ran the last time

This commit is contained in:
orangecoding
2021-05-13 20:27:42 +02:00
parent 0cd354c34a
commit 1f6e2d3618
6 changed files with 61 additions and 4 deletions

View File

@@ -24,6 +24,7 @@ console.log(`Started Fredy successfully. Ui can be accessed via http://localhost
/* eslint-enable no-console */
setInterval(
(function exec() {
config.lastRun = Date.now();
jobStorage
.getJobs()
.filter((job) => job.enabled)