Help:Job queue

From semantic-mediawiki.org
Jump to: navigation, search
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

Set $wgJobRunRate = 0; in your "LocalSettings.php" file and create the script in a file called "runJobs.sh":1

runJobs.sh
#!/usr/bin/env bash 
# will be executed by a cron-job 
MEDIAWIKI=/path/to/your/mediawiki 
RUNNING=$(ps aux | grep /mediawiki/maintenance/runJobs.php | grep maxjobs) 
if [ -z $RUNNING ];
    then su XXX -c "php $MEDIAWIKI/maintenance/runJobs.php --maxjobs=999";
fi

Email 1 further explains that "... XXX to a user that should execute runJobs.php ... have CRON execute the shell-script every minute or so.".

MediaWiki

Mail discussions

See also