Removed redundant wfReadOnly check in runJobs.php
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 21 Apr 2015 23:20:31 +0000 (16:20 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Tue, 21 Apr 2015 23:22:36 +0000 (23:22 +0000)
* JobRunner handles this and doing it pre-fork is less safe

Change-Id: I9e53e6b2d04f3f370723af8140e796ba337cfd3b

maintenance/runJobs.php

index 3864e3c..c8445da 100644 (file)
@@ -52,10 +52,6 @@ class RunJobs extends Maintenance {
        }
 
        public function execute() {
-               if ( wfReadOnly() ) {
-                       $this->error( "Unable to run jobs; the wiki is in read-only mode.", 1 ); // die
-               }
-
                if ( $this->hasOption( 'procs' ) ) {
                        $procs = intval( $this->getOption( 'procs' ) );
                        if ( $procs < 1 || $procs > 1000 ) {