3 require_once( 'commandLine.inc' );
4 require_once( "$IP/includes/JobQueue.php" );
5 require_once( "$IP/includes/FakeTitle.php" );
7 // Trigger errors on inappropriate use of $wgTitle
8 $wgTitle = new FakeTitle
;
10 $dbw =& wfGetDB( DB_MASTER
);
11 while ( $dbw->selectField( 'job', 'count(*)', '', 'runJobs.php' ) ) {
12 while ( false != ($job = Job
::pop()) ) {
14 print $job->id
. " " . $job->toString() . "\n";
16 print "Error: {$job->error}\n";