Admin: Add message with failed / total nodes for nodes.json-task.

This commit is contained in:
baldo 2020-06-30 17:08:24 +02:00
parent fb87695b3e
commit b6a67d6e74
12 changed files with 120 additions and 20 deletions
server/jobs

View file

@ -1,8 +1,12 @@
import * as MailService from "../services/mailService"
import {jobResultOkay} from "./scheduler";
export default {
name: 'MailQueueJob',
description: 'Send pending emails (up to 5 attempts in case of failures).',
run: MailService.sendPendingMails,
}
async run() {
await MailService.sendPendingMails();
return jobResultOkay();
},
};