Make workItemCount() smarter for htmlCacheUpdate/refreshLinks
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 23 Aug 2017 17:35:04 +0000 (10:35 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 23 Aug 2017 17:35:34 +0000 (10:35 -0700)
commit70d1bc00919efb1cbfd00e85bbf65b8e947cbdb6
treeea344499392ee89904d4df7a49c9a8304f328400
parent2d7d468fc2197f7e03b91198ac82972482cffc39
Make workItemCount() smarter for htmlCacheUpdate/refreshLinks

Do not count jobs that just make subdivide as having any
"work items". This makes $wgJobBackoffThrottling less
overzealous when used to limit these type of jobs.

The main reason to limit htmlCacheUpdate would be for
CDN purge rate limiting. For refreshLinks, it would
mostly be lag, though that is already handled for
leaf jobs and JobRunner itself.

Bug: T173710
Change-Id: Ide831b555e51e3111410929a598efb6c0afc0989
includes/jobqueue/jobs/HTMLCacheUpdateJob.php
includes/jobqueue/jobs/RefreshLinksJob.php