diff options
Diffstat (limited to 'maintenance/showJobs.php')
-rw-r--r-- | maintenance/showJobs.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/maintenance/showJobs.php b/maintenance/showJobs.php new file mode 100644 index 00000000..98e47de2 --- /dev/null +++ b/maintenance/showJobs.php @@ -0,0 +1,19 @@ +<?php +/** + * Based on runJobs.php + * + * @author Tim Starling + * @author Ashar Voultoiz + */ +require_once( 'commandLine.inc' ); +require_once( "$IP/includes/JobQueue.php" ); +require_once( "$IP/includes/FakeTitle.php" ); + +// Trigger errors on inappropriate use of $wgTitle +$wgTitle = new FakeTitle; + +$dbw =& wfGetDB( DB_MASTER ); +$count = $dbw->selectField( 'job', 'count(*)', '', 'runJobs.php' ); +print $count."\n"; + +?> |