my app has a timer (like an egg boiling timer)
The user enters a time to countdown to, and I’d like some action in a controller to occur once the timer is zero.
as requested – I’d like to have the capability of a user following several timers or timed events such as calendar. Since each user can time their events as they wish, the reminder/time’s up functionality needs to give a notice to the user (by pop up message, email, etc)
using DelayedJob and whenever won’t help here since they are all predefined times to events
One option to use those gems is to poll an action that will test all timers every second for all users but that doesn’t scale very well or efficient..
How would I call an action exactly when the timer is up?
found what I was looking for – the clockwork gem
https://github.com/tomykaira/clockwork