/** * 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); }
public function testStatusIsNotTrackedWhenToldNotTo() { $token = Resque::enqueue('jobs', 'Test_Job', null, false); $status = new Status($token); $this->assertFalse($status->isTracking()); }