feat: run comment email notification once per day

pull/5778/head
Christian Bläul 2 years ago
parent 93d07daf8d
commit 411f245f35

@ -137,6 +137,11 @@ jobs:
repeat: false
immediate: true
worker: true
sendCommentNotificationEmails:
onInit: true
schedule: P1D
offlineSkip: true
repeat: true
groups:
defaultPermissions:
- 'read:pages'

@ -1,7 +1,10 @@
# About jobs
The files in this directory can be executed from the terminal like this:
The files in this directory can be executed manually from the terminal like this:
````bash
node server/core/worker.js --job=send-comment-notification-emails
````
To trigger a job on schedule automatically, you need to add an entry to the file `server/app/data.yml` under the `jobs`
key. For the `schedule` values, refer to [ISO 8601 durations](https://en.wikipedia.org/wiki/ISO_8601#Durations).

Loading…
Cancel
Save