How to schedule task daily + onStart() in Play 2.0.4?
Scheduler tasks should be placed only in Global class. Create two tasks, schedule only once first with initialDelay = 0 milliseconds. For the second task, you need to calculate seconds between current DateTime and next planned occurrence (ie. tomorrow at 8:00 o’clock) using common date/time classes, then set this difference as initialDelay and also set … Read more