TheLoons / SportIM-service

Backend Webservice for SportIM
GNU General Public License v2.0
1 stars 0 forks source link

Send Email Alerts to Users #26

Closed crimsonangel68 closed 9 years ago

hjbrock commented 9 years ago

http://quartz-scheduler.org/documentation/quartz-2.x/quick-start

hjbrock commented 9 years ago

http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.quartz-scheduler%22

crimsonangel68 commented 9 years ago
  1. Make sure job isn't running (AlertJob table (Column "isRunning" (true/false?))) (bail out if running)
  2. Grab Events from now to 24 hours + participants + preferences (from teams/participants) (AKA Nasty Join)
  3. Make sure not already fired (via Alerts Table (Columns: eventId, login, start))
  4. For each login/event pair fire alert and add to alerts
  5. Clear out old alerts
  6. Change job to "not running"
hjbrock commented 9 years ago

https://devcenter.heroku.com/articles/sendgrid

hjbrock commented 9 years ago

http://stackoverflow.com/questions/19573457/simple-example-for-quartz-2-2-and-tomcat-7