49b825f791dae64650f67932a1cf114445807820
5 * Report number of jobs currently waiting in master database.
10 * @author Ashar Voultoiz
13 require_once( "Maintenance.php" );
15 class ShowJobs
extends Maintenance
{
16 public function __construct() {
17 parent
::__construct();
18 $this->mDescription
= "Show number of jobs waiting in master database";
20 public function execute() {
21 $dbw = wfGetDB( DB_MASTER
);
22 $this->output( $dbw->selectField( 'job', 'count(*)', '', 'runJobs.php' ) . "\n" );
26 $maintClass = "ShowJobs";
27 require_once( DO_MAINTENANCE
);