Exemplo n.º 1
0
 public function stop($jobDescription)
 {
     try {
         $this->resqueManager->delete($jobDescription);
     } catch (\Exception $e) {
     }
 }
Exemplo n.º 2
0
 /**
  * @param RedmineUser $user
  */
 public function stop(RedmineUser $user)
 {
     $job = $user->getJobDescription();
     if ($job) {
         $this->resqueManager->delete($job);
         $user->setJobDescription(null);
         $this->em->flush();
     }
 }
Exemplo n.º 3
0
 /**
  * @dataProvider getValues
  */
 public function testDeleteNow($name, $options, $queue, $when)
 {
     $job = $this->manager->put($name, $options, $queue);
     $this->assertEquals(0, $this->manager->delete($job));
 }