Quick-fail refreshLinksJob if the triggering revision isn't the latest
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 2 May 2016 20:36:10 +0000 (16:36 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 2 May 2016 20:36:10 +0000 (16:36 -0400)
commite96c81bab59f8d099c6e3a897b359b464aed9192
treef0ba1f275ac790a351c69a96fb008772b164e86f
parentcbc9745eb62dc8e86b7a322581286eb5bf771eae
Quick-fail refreshLinksJob if the triggering revision isn't the latest

If we already know that the triggeringRevisionId is outdated, fail early
instead of doing all the work of re-parsing that old revision and
preparing all the updates only to fail later at the lockAndGetLatest()
call.

Change-Id: Ic70c659899d5d47e74fa17c88ed26b436732ca8a
includes/jobqueue/jobs/RefreshLinksJob.php