X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FrunJobs.php;h=2e011fecde54b2f356e9fdb1aed7b43f2192a5c8;hb=8856c6785898ee6a47ab4e9949a60edaaf007792;hp=c3c239154563fc4946b77967c1dacefcde7fab52;hpb=d2193f9d1df44d92882234e02f8a697adcdfad6e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php index c3c2391545..2e011fecde 100644 --- a/maintenance/runJobs.php +++ b/maintenance/runJobs.php @@ -53,8 +53,6 @@ class RunJobs extends Maintenance { } public function execute() { - global $wgCommandLineMode; - if ( $this->hasOption( 'procs' ) ) { $procs = intval( $this->getOption( 'procs' ) ); if ( $procs < 1 || $procs > 1000 ) { @@ -70,10 +68,6 @@ class RunJobs extends Maintenance { $outputJSON = ( $this->getOption( 'result' ) === 'json' ); $wait = $this->hasOption( 'wait' ); - // Enable DBO_TRX for atomicity; JobRunner manages transactions - // and works well in web server mode already (@TODO: this is a hack) - $wgCommandLineMode = false; - $runner = new JobRunner( LoggerFactory::getInstance( 'runJobs' ) ); if ( !$outputJSON ) { $runner->setDebugHandler( [ $this, 'debugInternal' ] ); @@ -111,8 +105,6 @@ class RunJobs extends Maintenance { sleep( 1 ); } - - $wgCommandLineMode = true; } /**