mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
feat: run comment email notification once per day
This commit is contained in:
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…
Reference in New Issue
Block a user