Job to clean up outdated monitoring data.
This commit is contained in:
parent
b84bfb5c99
commit
e03be8bf51
3 changed files with 36 additions and 1 deletions
13
server/jobs/nodeInformationCleanupJob.js
Normal file
13
server/jobs/nodeInformationCleanupJob.js
Normal file
|
@ -0,0 +1,13 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('ffffng').factory('NodeInformationCleanupJob', function (MonitoringService, Logger) {
|
||||
return {
|
||||
run: function () {
|
||||
MonitoringService.cleanupNodeInformation(function (err) {
|
||||
if (err) {
|
||||
Logger.tag('monitoring', 'information-cleanup').error('Error cleaning up node data:', err);
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue