lame script based on runJobs.php by Tim Starling. Basicly
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 19 Apr 2006 21:13:47 +0000 (21:13 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 19 Apr 2006 21:13:47 +0000 (21:13 +0000)
output number of jobs ongoing given a wikidatabase.

maintenance/showJobs.php [new file with mode: 0644]

diff --git a/maintenance/showJobs.php b/maintenance/showJobs.php
new file mode 100644 (file)
index 0000000..cbd65d5
--- /dev/null
@@ -0,0 +1,18 @@
+<?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";
+?>