2020-04-10 00:43:15 +02:00
|
|
|
import * as MonitoringService from "../services/monitoringService";
|
2022-08-23 20:08:53 +02:00
|
|
|
import { jobResultOkay } from "./scheduler";
|
2020-04-08 23:41:04 +02:00
|
|
|
|
|
|
|
export default {
|
2022-08-23 20:08:53 +02:00
|
|
|
name: "OfflineNodesDeletionJob",
|
|
|
|
description: "Delete nodes that are offline for more than 100 days.",
|
2020-04-08 23:41:04 +02:00
|
|
|
|
2020-06-30 17:08:24 +02:00
|
|
|
async run() {
|
|
|
|
await MonitoringService.deleteOfflineNodes();
|
|
|
|
return jobResultOkay();
|
|
|
|
},
|
2020-04-08 23:41:04 +02:00
|
|
|
};
|