Create JobQueueEnqueueUpdate class to call JobQueueGroup::pushLazyJobs()
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 24 Oct 2018 19:28:02 +0000 (12:28 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Sun, 28 Oct 2018 22:19:06 +0000 (22:19 +0000)
commit6030e9cf2c1df7929e2319602aa4d37aa641de11
tree65848bccccfa5f48ee15df9ff917a4afdb25fadf
parent954b695a850309818c687d904775fe41972d4f36
Create JobQueueEnqueueUpdate class to call JobQueueGroup::pushLazyJobs()

This assures that MergeableUpdate tasks that lazy push job will actually
have those jobs run instead of being added after the lone callback update
to call JobQueueGroup::pushLazyJobs() already ran.

This also makes it more obvious that push will happen, since a mergeable
update is added each time lazyPush() is called and a job is buffered,
rather than rely on some magic callback enqueued into DeferredUpdates at
just the right point in multiple entry points.

Bug: T207809
Change-Id: I13382ef4a17a9ba0fd3f9964b8c62f564e47e42d
autoload.php
includes/MediaWiki.php
includes/deferred/JobQueueEnqueueUpdate.php [new file with mode: 0644]
includes/jobqueue/JobQueueGroup.php
includes/jobqueue/JobRunner.php