This repository was archived by the owner on Oct 1, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Scheduled Tasks
Stephen Yeargin edited this page Jan 17, 2018
·
1 revision
The system emits two kinds of alerts on a schedule to let users know what is happening within their groups.
These tasks should be scheduled on the deployment to run at the specified intervals. You can also run them locally with MailCatcher to make sure they render properly.
In production, they use the Whenever gem to be added to the crontab
and updated on deployment.
Sends reminders to subscribed users for today.
bundle exec rake send_reminders:daily
- Scheduled every morning (CST)
- Sends a list of events for each group for that day to subscribed users (usually just one event)
- Sends nothing if event list is empty
Sends reminders to subscribed users for current week (Monday - Sunday)
bundle exec rake send_reminders:weekly
- Scheduled every Monday morning (CST)
- Sends a list of events for each group for that week to subscribed users
- Sends nothing if event list is empty