title: How to correctly schedule task in Play Framework 2.4.2 scala?
body: <p>Trying to schedule tasks like this in Play Framework 2.4.2 Scala without luck:</p>
  
  <pre><code>import akka.actor.Actor
  import play.api.libs.concurrent.Akka
  import scala.concurrent.duration._
  import play.api.Play.current
  import scala.concurrent.ExecutionContext.Implicits.global
  
  class Scheduler extends Actor {
  
    override def preStart() {
      val dbupdate = Akka.system.scheduler.schedule(
        0.microseconds, 5.minutes, self, "update")
      val pictureClean = Akka.system.scheduler.schedule(
        0.microseconds, 30.minutes, self, "clean")
    }
  
    def receive = {
      case "update" =&gt; updateDB()
      case "clean" =&gt; clean()
    }
  
    def updateDB(): Unit ={
      Logger.debug("updates running")
    }
  
    def clean(): Unit ={
      Logger.debug("cleanup running")
    }
  }
  </code></pre>
  
  <p>Nothing is printed in console. What I'm doing wrong?</p>