(bug 37072) - prevents infinite job loop
authorAntoine Musso <hashar@free.fr>
Mon, 28 May 2012 08:20:19 +0000 (10:20 +0200)
committerAntoine Musso <hashar@free.fr>
Tue, 29 May 2012 11:50:44 +0000 (13:50 +0200)
commitfb69ee48d33b349fd63e363e0e25770aab17b48f
treeb6d41cd3fe83dbfcda9cda62678af00912be4e94
parent281510195d99c7ed5a9faf60f650fa0c538c09b6
(bug 37072) - prevents infinite job loop

nextJob.php does not honor jobs types being excluded from the default
job queue by using $wgJobTypesExcludedFromDefaultQueue. Since those jobs
can never get processed, nextJob.php will always return a database which
might produce a nasty infinite loop while trying to process the whole
queue.

Job::pop did take in account wgJobTypesExcludedFromDefaultQueue to
filter the jobs out. So this patch factor out the code in a new method
and uses it for nextJob.php.

Change-Id: I15197ffcca00f229c9004e2abd87e009bc40f384
includes/job/JobQueue.php
maintenance/nextJobDB.php