This wiki is being moved to a new server and cannot be edited. Please sit tight. Thank you.

Help:Job queue

(Redirected from Help:Job queue)
Table of Contents

This page advises on doing maintenance by using a shell script to work on the jobs piped into a job queue by Semantic MediaWiki, but also by MediaWiki itself and other extensions relying on jobs.

Cron job[edit]

Set $wgJobRunRate = 0; in your "LocalSettings.php" file and create the script in a file called ""1 or alternatively ""2
# will be executed by a cron-job 

RUNNING=$(ps aux | grep /mediawiki/maintenance/runJobs.php | grep maxjobs) 
if [ -z $RUNNING ];
    then su XXX -c "php $MEDIAWIKI/maintenance/runJobs.php --maxjobs=999";
# will be executed by a cron-job

date >> /var/log/httpd/cron

if pgrep -f "php /var/www/html/w/maintenance/runJobs.php -q --memory-limit=max --wait" > /dev/null
        echo "runJobs running." >> /var/log/httpd/cron
        kill `pgrep -f "php /var/www/html/w/maintenance/runJobs.php -q --memory-limit=max --wait"`

echo "runJobs stopped. Restarting..." >> /var/log/httpd/cron

php /var/www/html/w/maintenance/runJobs.php -q --memory-limit=max --wait >> /var/log/httpd/cron 2>&1 &


Mail discussions[edit]

See also[edit]