add finisheding msg
This commit is contained in:
parent
d15f1613f0
commit
4b7b43c036
@ -1,6 +1,7 @@
|
||||
import Influx from "./influx/influx";
|
||||
import ServerManager from "./server/serverManager";
|
||||
import WebsiteManager from "./website/websiteManager";
|
||||
import {logger} from "./utils/logger";
|
||||
|
||||
/**
|
||||
* The influx database instance.
|
||||
@ -9,3 +10,5 @@ export const influx = new Influx();
|
||||
|
||||
new ServerManager();
|
||||
new WebsiteManager();
|
||||
|
||||
logger.info("Done loading!");
|
@ -20,8 +20,8 @@ export default class ServerManager {
|
||||
}
|
||||
logger.info(`Loaded ${this.servers.length} servers!`);
|
||||
|
||||
cron.schedule(Config.pinger.pingCron, () => {
|
||||
this.pingServers();
|
||||
cron.schedule(Config.pinger.pingCron, async () => {
|
||||
await this.pingServers();
|
||||
});
|
||||
|
||||
cron.schedule(Config.pinger.dnsInvalidationCron, () => {
|
||||
|
@ -19,8 +19,8 @@ export default class WebsiteManager {
|
||||
}
|
||||
logger.info(`Loaded ${this.websites.length} websites!`);
|
||||
|
||||
cron.schedule(Config.pinger.pingCron, () => {
|
||||
this.pingWebsites();
|
||||
cron.schedule(Config.pinger.pingCron, async () => {
|
||||
await this.pingWebsites();
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user