5 * Report number of jobs currently waiting in master database.
10 * @author Ashar Voultoiz
12 require_once( 'commandLine.inc' );
13 require_once( "$IP/includes/JobQueue.php" );
14 require_once( "$IP/includes/FakeTitle.php" );
16 // Trigger errors on inappropriate use of $wgTitle
17 $wgTitle = new FakeTitle
;
19 $dbw = wfGetDB( DB_MASTER
);
20 $count = $dbw->selectField( 'job', 'count(*)', '', 'runJobs.php' );