airbnb/chronos — pull request #319 by meelapshah (2014-12-11 08:26:31+00:00)
Title: Allow launching multiple tasks per resource offer

Mesos allows frameworks to respond to offers with a list of tasks to run.

Currently, Chronos launches at most task per offer. I think it would be helpful to respond with many tasks from the queue per offer to reduce the delay between getting added to the queue and being launched on Mesos.

This patch accomplishes this in a simple way by repeatedly popping tasks from the queue as long as there are resources remaining to satisfy them, and then launches them all together.