Skip to content
This repository was archived by the owner on Oct 1, 2020. It is now read-only.

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.

Daily Reminders

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

Weekly Reminders

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
Clone this wiki locally