Manual talk:RunJobs.php

Interpreting the Output
What do these mean please?
 * start
 * end
 * t

t is the time in milliseconds --Planetenxin (talk) 13:43, 17 April 2012 (UTC)

Duplicate jobs?
If a refreshlinks2 is done twice (in a row), naming the same template, is the second time redundant? If so, could the jobs table specify a unique key for each row? If not, why not? thanks.

Getting Timeout yy when running the runJobs.php
MW: 1.17.2 I get Timeout yy when running php ./runJobs.php maintenance script and I see that job queue is not decreasing. Is there anywhere a place to increase the timeout. I use Semantic Mediawiki and many of the failed pages contains heavy queries, which may take 10 seconds to load. Does this have impact?  

Error
Everytime I try to run this i get the following errors:

PHP Notice: Undefined index: HTTP_USER_AGENT in /var/www/*****.com/public/w/extensions/MobileDetect/MobileDetect.php on line 27 PHP Notice: Undefined index: HTTP_ACCEPT in /var/www/*****.com/public/w/extensions/MobileDetect/MobileDetect.php on line 28

Any idea what the issue is? --Zackmann08 (talk) 14:08, 17 August 2012 (UTC)


 * HTTP_USER_AGENT and HTTP_ACCEPT sound like they are these "request variables", which are set when you access a webpage with a browser. However, the maintenance script are run from shell and there these variables naturally are not set. The extension should be fixed to either not use these variables when in CLI mode or it should maybe be deactivated in CLI mode completely. --88.130.121.146 13:50, 26 February 2014 (UTC)

runJobs.php hangs on execution
I'm trying to use the Create Class link on the special pages to create a form. Not all of the components are being generated and the runJobs.php is hanging on execution.

First, how can I see a list of jobs that are waiting to be processed. Second, how do I get all of this to work?

Thanks

wade courtney

LoadBalancer
I'm running runJobs.php via Cronjob like this: php /path/to/my/wiki/w/maintenance/runJobs.php --maxjobs 1000

I added the following to my LocalSettings.php:

$wgDebugLogFile = "/path/to/log/mediawiki/debug-{$wgDBname}.log";

...and I keep getting these entries in my log files:

Start command line script /path/to/my/wiki/w/maintenance/runJobs.php [caches] main: MemcachedPhpBagOStuff, message: MemcachedPhpBagOStuff, parser: MemcachedPhpBagOStuff [caches] LocalisationCache: using store LCStoreDB Fully initialised Connected to database 0 at 12.34.56.78 LoadBalancer::reuseConnection: this connection was not opened as a foreign connection

Does anyone know what this means?

Thanks and cheers,

--Till Kraemer (talk) 10:51, 28 December 2014 (UTC)

runJobs runs nothing, yet there are items in the job queue
I checked the API to see how many jobs I had. it says JOBS: 25 I run "PHP runjobs.php", and it processes with no actions

I go to the mysql database, look at the mw_job table. It has 25 records in it.

Am I safe to truncate mw_job because the runjobs is not picking up any?

I have had to terminate runjobs.php quite a few times over the last week, due to caching. -Bob


 * Yes, you can truncate it. Maybe they're skipped because of previous failed attempts. In that case, they may have the  field of the job table with a number different than 0. In that case, updating that field to 0 may execute them again. In any case, the behavior of that field, how to reset it, or how to force to run such jobs through this script is not documented in any way :(  --Ciencia Al Poder (talk) 10:43, 6 March 2015 (UTC)


 * Thank you Ciencia Al Poder. The job_attempts field was 1 for all of them.   I ran    I re-ran the runjobs.php script, it ran with 0 jobs. I'm now just truncating the table  Bob.spencer (talk) 16:53, 10 March 2015 (UTC)