mirror of
https://github.com/smartyellow/status.git
synced 2025-07-09 01:14:05 +00:00
@ -19,12 +19,9 @@ process.on('message', async message => {
|
|||||||
const interval = service.autotestInterval;
|
const interval = service.autotestInterval;
|
||||||
const needsCheck = timePassed >= interval;
|
const needsCheck = timePassed >= interval;
|
||||||
|
|
||||||
console.log(`service ${service.id}`, lastChecked, service.autotestEnabled, timePassed, interval, needsCheck);
|
|
||||||
|
|
||||||
if (service.autotestEnabled && needsCheck) {
|
if (service.autotestEnabled && needsCheck) {
|
||||||
ids.push(service.id);
|
ids.push(service.id);
|
||||||
promises.push(testEndpoints(service.autotest));
|
promises.push(testEndpoints(service.autotest));
|
||||||
console.log(`testing ${service.id}`);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user