예제 #1
0
파일: Queue.php 프로젝트: JanFoerste/blivy
 /**
  * ### Removes all failed jobs
  */
 private function flushFailed()
 {
     $driver = Connector::get();
     $failed = $driver->getFailedJobs();
     foreach ($failed as $item) {
         $driver->del($item);
     }
     echo 'Cleared failed jobs.';
 }
예제 #2
0
파일: Queue.php 프로젝트: JanFoerste/blivy
 /**
  * ### Store the job in the driver
  */
 private function storeJob()
 {
     $driver = Connector::get();
     $driver->addToQueue(serialize($this));
 }
예제 #3
0
 /**
  * ### Retries a job
  *
  * @param $key
  * @param $job
  */
 public function retry($key, $job)
 {
     $driver = Connector::get();
     $driver->addFail($key, $job);
 }