Admin: Add message with failed / total nodes for nodes.json-task.
This commit is contained in:
parent
fb87695b3e
commit
b6a67d6e74
12 changed files with 120 additions and 20 deletions
server/jobs
|
@ -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();
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue