blob: 2202d63df34ccaf0af177c8dcc7a9b2294bdf71a [file] [log] [blame]
import java.util.Date
import play.api._
import play.api.mvc._
import scala.concurrent.ExecutionContext.Implicits.global
import scala.concurrent.future
object Global extends GlobalSettings {
override def onStart(app: Application) = {
Logger.info("Quartz scheduler is starting...")
io.prediction.scheduler.Scheduler.scheduler.start()
future { io.prediction.scheduler.Scheduler.syncAllUsers() }
}
override def onStop(app: Application) = {
Logger.info("Quartz scheduler is shutting down...")
io.prediction.scheduler.Scheduler.scheduler.shutdown()
}
}