public function testStatusTrackingCanBeStopped() { Status::create('test'); $status = new Status('test'); $this->assertEquals(Status::STATUS_WAITING, $status->get()); $status->stop(); $this->assertFalse($status->get()); }
/** * 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); }