travis-ci/travis-core — pull request #127 by svenfuchs (2012-10-27 22:35:02+00:00)
Title: move queueing logic to a service

* extracts logic to a service class
* removes the strategy pattern (current "by owner" strategy seems good enough, no other strategy in sight)
* inverts the jobs/owners loops
* collects and returns a "report" per owner (like: `travis-repos: total: 7, running: 4, max: 5, queueable: 1`)