From 8af00878cb7bb9b5c5f3c789900da333927073be Mon Sep 17 00:00:00 2001 From: Kirk Mayo Date: Mon, 26 Aug 2013 12:53:01 +1200 Subject: [PATCH] BUG: Correcteing task instance name and calling completeJob --- jobs/CheckExternalLinksJob.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jobs/CheckExternalLinksJob.php b/jobs/CheckExternalLinksJob.php index 8f12f03..1afe30b 100644 --- a/jobs/CheckExternalLinksJob.php +++ b/jobs/CheckExternalLinksJob.php @@ -61,15 +61,16 @@ class CheckExternalLinksJob extends AbstractQueuedJob { } public function process() { - $task = new CheckExternalLinksTask(); + $task = new CheckExternalLinks(); $task->run(); + $this->completeJob(); } /** * Outputs the completed file to the site's webroot */ protected function completeJob() { - + $this->isComplete = 1; $nextgeneration = new CheckExternalLinksJob(); singleton('QueuedJobService')->queueJob($nextgeneration, date('Y-m-d H:i:s', time() + self::$regenerate_time));