Show task description in admin panel.
This commit is contained in:
parent
57c6d5d40f
commit
ce155951bf
8 changed files with 33 additions and 11 deletions
|
@ -2,6 +2,8 @@
|
|||
|
||||
angular.module('ffffng').factory('MailQueueJob', function (MailService, Logger) {
|
||||
return {
|
||||
description: 'Send pending emails (up to 5 attempts in case of failures).',
|
||||
|
||||
run: function (callback) {
|
||||
MailService.sendPendingMails(function (err) {
|
||||
if (err) {
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
angular.module('ffffng').factory('MonitoringMailsSendingJob', function (MonitoringService, Logger) {
|
||||
return {
|
||||
description: 'Sends monitoring emails depending on the monitoring state of nodes retrieved by the NodeInformationRetrievalJob.',
|
||||
|
||||
run: function (callback) {
|
||||
MonitoringService.sendMonitoringMails(function (err) {
|
||||
if (err) {
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
angular.module('ffffng').factory('NodeInformationCleanupJob', function (MonitoringService, Logger) {
|
||||
return {
|
||||
description: 'Cleanup monitoring status entries for nodes no longer having monitoring enabled.',
|
||||
|
||||
run: function (callback) {
|
||||
MonitoringService.cleanupNodeInformation(function (err) {
|
||||
if (err) {
|
||||
|
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
angular.module('ffffng').factory('NodeInformationRetrievalJob', function (MonitoringService, Logger) {
|
||||
return {
|
||||
description: 'Fetches the nodes.json and calculates and stores the monitoring status for nodes with active monitoring.',
|
||||
|
||||
run: function (callback) {
|
||||
MonitoringService.retrieveNodeInformation(function (err) {
|
||||
if (err) {
|
||||
|
|
|
@ -33,6 +33,7 @@ angular.module('ffffng').factory('Scheduler', function ($injector, Logger, confi
|
|||
var task = {
|
||||
id: id,
|
||||
name: jobName,
|
||||
description: job.description,
|
||||
schedule: expr,
|
||||
job: job,
|
||||
runningSince: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue