|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.
$wgJobRunRate = 0; in your "LocalSettings.php" file and create the script in a file called "runJobs.sh":1
#!/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.".
- JobQueueRedis and SMW is reported to fail with "JobQueueRedis.php: Redis server error: Could not insert 1 htmlCacheUpdate job(s)" issue
- MediaWiki Job queue problem about "stuck" Jobs
- SMW UpdateJob error
- Job queue affecting semantic queries in MW 1.22
- many runjobs about 7000 jobs (refreshLinksDynamic) after a day