BUG: Correcteing task instance name and calling completeJob

This commit is contained in:
Kirk Mayo 2013-08-26 12:53:01 +12:00
parent 91b1ae4354
commit 8af00878cb
1 changed files with 3 additions and 2 deletions

View File

@ -61,15 +61,16 @@ class CheckExternalLinksJob extends AbstractQueuedJob {
} }
public function process() { public function process() {
$task = new CheckExternalLinksTask(); $task = new CheckExternalLinks();
$task->run(); $task->run();
$this->completeJob();
} }
/** /**
* Outputs the completed file to the site's webroot * Outputs the completed file to the site's webroot
*/ */
protected function completeJob() { protected function completeJob() {
$this->isComplete = 1;
$nextgeneration = new CheckExternalLinksJob(); $nextgeneration = new CheckExternalLinksJob();
singleton('QueuedJobService')->queueJob($nextgeneration, singleton('QueuedJobService')->queueJob($nextgeneration,
date('Y-m-d H:i:s', time() + self::$regenerate_time)); date('Y-m-d H:i:s', time() + self::$regenerate_time));