Example #1
0
 /**
  * Re-queue the current job.
  * @return string
  */
 public function recreate()
 {
     $status = new Status($this->payload['id']);
     $monitor = false;
     if ($status->isTracking()) {
         $monitor = true;
     }
     return self::create($this->queue, $this->payload['class'], $this->payload['args'], $monitor);
 }
Example #2
0
 public function testStatusIsNotTrackedWhenToldNotTo()
 {
     $token = Resque::enqueue('jobs', 'Test_Job', null, false);
     $status = new Status($token);
     $this->assertFalse($status->isTracking());
 }