diff --git a/rpc/RunJobs.php b/rpc/RunJobs.php index ffd0c6dedc..f06a0da00c 100644 --- a/rpc/RunJobs.php +++ b/rpc/RunJobs.php @@ -47,7 +47,7 @@ try { $mediawiki = new MediaWiki(); - $runner = new JobRunner(); + $runner = MediaWikiServices::getInstance()->getJobRunner(); $response = $runner->run( [ 'type' => isset( $_GET['type'] ) ? $_GET['type'] : false, 'maxJobs' => isset( $_GET['maxjobs'] ) ? $_GET['maxjobs'] : 5000,