HomePhabricator

Make use of the per-server jobqueue:s-queuesWithJobs key

Authored by aaron.

Description

Make use of the per-server jobqueue:s-queuesWithJobs key

Instead of tracking types/domains and hitting the cross-product
of those for periodic updates, only do them for queue that are
tracked as having non-abandoned jobs.

This saves CPU, makes undelaying/recycling more responsive,
and simplifies the code.

  • Also remove unused batching logic from updateQueueServerChunk().
  • Also rename some comments/vars from wiki => domain.

Change-Id: I6ebffe55991ab050e2996bcba3e459ab7afdca90

Details

Committed
oriDec 15 2015, 1:51 AM
Parents
rGJOBe44bbcd49b4f: Make "No jobs available..." message debug level
Branches
Unknown
Tags
Unknown
References
refs/changes/17/252617/11
ChangeId
I6ebffe55991ab050e2996bcba3e459ab7afdca90