@@ -114,6 +114,10 @@ |
||
| 114 | 114 | $job->setNextRun($newTime); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | + /** |
|
| 118 | + * @param CronJob $timeTaken |
|
| 119 | + * @param string $resultCode |
|
| 120 | + */ |
|
| 117 | 121 | protected function recordJobResult(CronJob $job, $timeTaken, $output, $resultCode) |
| 118 | 122 | { |
| 119 | 123 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Alpixel\Bundle\CronBundle\Entity\CronJob; |
| 6 | 6 | use Alpixel\Bundle\CronBundle\Entity\CronJobResult; |
| 7 | -use Doctrine\ORM\EntityManager; |
|
| 8 | 7 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 9 | 8 | use Symfony\Component\Console\Input\ArgvInput; |
| 10 | 9 | use Symfony\Component\Console\Input\InputArgument; |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Alpixel\Bundle\CronBundle\Annotation\CronJob as CronJobAnno; |
| 6 | 6 | use Alpixel\Bundle\CronBundle\Entity\CronJob; |
| 7 | -use Doctrine\ORM\EntityManager; |
|
| 8 | 7 | use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; |
| 9 | 8 | use Symfony\Component\Console\Command\Command; |
| 10 | 9 | use Symfony\Component\Console\Input\InputInterface; |