Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Change to launch multiple tasks if offer is big enough #32

Closed
wants to merge 7 commits into from

Conversation

everpeace
Copy link
Contributor

Patch for #14 was originally pushed on a branch patch/issue-14(#23).
But, the branch was based on old commit and merging the branch to master requires us to resolve some conflicts and refactoring. So, I've make merging branch merge-patch-issue-14 for making this patch to be mergable to master.

newTasks was changed to try to take tasks from taskQueue as many as possible.
…resourced but original offered resource.

To take tasks as many as possible from taskQueue, task should be generated based on remained resource.
…o TaskBuilder.

Consequently, TaskScheduler(taskQueue,newTaskId).buildUtmostTasksFor(offer) was introduced.
In TaskBuilder class, meetsConstraints(AppDefinition,  Offer) was introduced.
Consequently,  offerMatches in TaskBuilder object was deleted.
@ssorallen
Copy link
Contributor

Is this still a feature worth adding?

@everpeace
Copy link
Contributor Author

Thanks for pinging me @ssorallen .
No I don't think so.
So, I closed this pull request.

@everpeace everpeace closed this Jan 7, 2014
@ssorallen ssorallen deleted the merge-patch-issue-14 branch January 7, 2014 17:55
@marcomonaco marcomonaco added the pr label Mar 6, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants