public function onUpdatedProposeUpdateTask()
    {
        /* @var $task Task */
        $task = $this->em
            ->getRepository('AnimeDbAppBundle:Task')
            ->findOneBy(['command' => 'animedb:propose-update']);

        $next_run = new \DateTime();
        $next_run->modify(sprintf('+%s seconds  01:00:00', ProposeUpdateCommand::INERVAL_UPDATE));

        $this->em->persist($task->setNextRun($next_run));
        $this->em->flush();
    }