BUG: Correcteing task instance name and calling completeJob
This commit is contained in:
parent
91b1ae4354
commit
8af00878cb
|
@ -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));
|
||||||
|
|
Loading…
Reference in New Issue