From f9b1aaf8ed85537652459376a8441ce5b35cb603 Mon Sep 17 00:00:00 2001 From: paladox Date: Thu, 5 Dec 2024 16:16:21 +0000 Subject: [PATCH] Update RunJobs.php --- rpc/RunJobs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,