Browse Source

feat: run comment email notification once per day

pull/5778/head
Christian Bläul 2 years ago
parent
commit
411f245f35
2 changed files with 9 additions and 1 deletions
  1. 5
      server/app/data.yml
  2. 5
      server/jobs/README.md

5
server/app/data.yml

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

5
server/jobs/README.md

@ -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