mesosphere/marathon — pull request #231 by drexin (2014-04-22 16:20:28+00:00)
Title: #14 Optimize task scheduling

This PR changes the `MarathonScheduler` to search the whole `taskQueue` for a matching task for every given offer. If no matching task is found, it continues with the next offer. If a matching task is found, it is started with the current offer.

Furthermore the tasks in the `TaskQueue` are now sorted by number of constraints. This way we check the tasks with constraints first and don't assign constraint free tasks to offers with matching properties for another task in the list.