dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f56fa12
)
specify offset for Job::pop(), yay for efficient job queue runs (unless there's a...
author
Domas Mituzas
<midom@users.mediawiki.org>
Sun, 25 Mar 2007 16:01:12 +0000
(16:01 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Sun, 25 Mar 2007 16:01:12 +0000
(16:01 +0000)
maintenance/runJobs.php
patch
|
blob
|
history
diff --git
a/maintenance/runJobs.php
b/maintenance/runJobs.php
index
7f7ed9a
..
91168e5
100644
(file)
--- a/
maintenance/runJobs.php
+++ b/
maintenance/runJobs.php
@@
-17,9
+17,11
@@
$wgTitle = Title::newFromText( 'RunJobs.php' );
$dbw = wfGetDB( DB_MASTER );
$n = 0;
while ( $dbw->selectField( 'job', 'count(*)', '', 'runJobs.php' ) ) {
- while ( false != ($job = Job::pop()) ) {
+ $offset=0;
+ while ( false != ($job = Job::pop($offset)) ) {
wfWaitForSlaves( 5 );
print $job->id . " " . $job->toString() . "\n";
+ $offset=$job->id;
if ( !$job->run() ) {
print "Error: {$job->error}\n";
}