public function end(SmileCron $smileCron, $status = 0)
    {
        $now = new \DateTime('now');
        $smileCron->setEnded($now);
        $smileCron->setStatus($status);
        $this->getEntityManager()->persist($smileCron);
        $this->getEntityManager()->flush();
    }