mirror of
https://github.com/silverstripe/silverstripe-externallinks.git
synced 2024-10-22 15:05:44 +00:00
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() {
|
||||
$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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user