summaryrefslogtreecommitdiff
path: root/maintenance/runJobs.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2008-08-15 01:29:47 +0200
committerPierre Schmitz <pierre@archlinux.de>2008-08-15 01:29:47 +0200
commit370e83bb0dfd0c70de268c93bf07ad5ee0897192 (patch)
tree491674f4c242e4d6ba0d04eafa305174c35a3391 /maintenance/runJobs.php
parentf4debf0f12d0524d2b2427c55ea3f16b680fad97 (diff)
Update auf 1.13.0
Diffstat (limited to 'maintenance/runJobs.php')
-rw-r--r--maintenance/runJobs.php14
1 files changed, 12 insertions, 2 deletions
diff --git a/maintenance/runJobs.php b/maintenance/runJobs.php
index 799092e1..14d08091 100644
--- a/maintenance/runJobs.php
+++ b/maintenance/runJobs.php
@@ -1,4 +1,14 @@
<?php
+/**
+ * This script starts pending jobs.
+ *
+ * Usage:
+ * --maxjobs <num> (default 10000)
+ * --type <job_cmd>
+ *
+ * @file
+ * @ingroup Maintenance
+ */
$optionsWithArgs = array( 'maxjobs', 'type' );
$wgUseNormalUser = true;
@@ -35,10 +45,10 @@ while ( $dbw->selectField( 'job', 'count(*)', $conds, 'runJobs.php' ) ) {
break;
wfWaitForSlaves( 5 );
- print $job->id . " " . $job->toString() . "\n";
+ print wfTimestamp( TS_DB ) . " " . $job->id . " " . $job->toString() . "\n";
$offset=$job->id;
if ( !$job->run() ) {
- print "Error: {$job->error}\n";
+ print wfTimestamp( TS_DB ) . " Error: {$job->error}\n";
}
if ( $maxJobs && ++$n > $maxJobs ) {
break 2;