Cron Tasks Overview
Cron tasks are usually stored in the config folder of the Strapi project (here: config/cron-tasks.js) and need to be enabled in the server.js file before being executed. For further details see the Strapi documentation.
| Crontask | Details | Functionality | Runs at |
|---|---|---|---|
sendSignInSheetToHare | Implemented in: config/cron-tasks.js | Identify the hare of this weeks run and send an email including link to Sign-in sheet, username and this weeks password (4-digit number) | rule: ""5 6 * * 4"", // Every Tuesday at 6.05amtz: ""Asia/Kuala_Lumpur""currently not in use |
anonymizeGuests | Implemented in: config/cron-tasks.js | Identify guests whose last run is more than 3 months ago. Annoymize the guest record by hashing the full_name and deleting the contact_no | rule: ""10 2 * * 4"", // Every Thursday at 2:10 AMtz: ""Asia/Kuala_Lumpur"" |
updateHash | Implemented in: config/cron-tasks.js | Update the hashestable with this_weeks_rundate and hares_password | rule: ""5 5 * * 4"", // Every Tuesday at 5.05amtz: ""Asia/Kuala_Lumpur"" |
