add finisheding msg
Some checks failed
Deploy CI / deploy (push) Successful in 21s
Publish Docker Image / docker (push) Has been cancelled

This commit is contained in:
Lee 2024-01-06 09:27:09 +00:00
parent d15f1613f0
commit 4b7b43c036
3 changed files with 7 additions and 4 deletions

@ -1,6 +1,7 @@
import Influx from "./influx/influx"; import Influx from "./influx/influx";
import ServerManager from "./server/serverManager"; import ServerManager from "./server/serverManager";
import WebsiteManager from "./website/websiteManager"; import WebsiteManager from "./website/websiteManager";
import {logger} from "./utils/logger";
/** /**
* The influx database instance. * The influx database instance.
@ -9,3 +10,5 @@ export const influx = new Influx();
new ServerManager(); new ServerManager();
new WebsiteManager(); new WebsiteManager();
logger.info("Done loading!");

@ -20,8 +20,8 @@ export default class ServerManager {
} }
logger.info(`Loaded ${this.servers.length} servers!`); logger.info(`Loaded ${this.servers.length} servers!`);
cron.schedule(Config.pinger.pingCron, () => { cron.schedule(Config.pinger.pingCron, async () => {
this.pingServers(); await this.pingServers();
}); });
cron.schedule(Config.pinger.dnsInvalidationCron, () => { cron.schedule(Config.pinger.dnsInvalidationCron, () => {

@ -19,8 +19,8 @@ export default class WebsiteManager {
} }
logger.info(`Loaded ${this.websites.length} websites!`); logger.info(`Loaded ${this.websites.length} websites!`);
cron.schedule(Config.pinger.pingCron, () => { cron.schedule(Config.pinger.pingCron, async () => {
this.pingWebsites(); await this.pingWebsites();
}); });
} }