/** * 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->getArguments(), $monitor); }
/** * Check job status * * @param string $token Job token ID * * @return string Job Status */ public function status($token) { $status = new Resque\Job\Status($token); return $status->get(); }