Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter offers #31

Merged
merged 2 commits into from
Nov 25, 2015
Merged

Filter offers #31

merged 2 commits into from
Nov 25, 2015

Conversation

keis
Copy link
Collaborator

@keis keis commented Nov 25, 2015

This should stop eremetic from trying to launch tasks on offers without enough resources.

Future improvements are to perhaps give up on a task if we can't launch it after X minutes. Also right now it freaks out and rejects all offers when a task can't be launched

@keis keis added the bug label Nov 25, 2015
}

func matchOffer(task types.EremeticTask, offers []*mesos.Offer) (*mesos.Offer, []*mesos.Offer) {
var matcher = makeMatcher(task)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

think I'd prefer createMatcher instead of makeMatcher

makeMatcher sounds weird in my head

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah. I'll change that. it's also a bit confusing when there already is the built in make() construct in the language

@alde
Copy link
Contributor

alde commented Nov 25, 2015

LGTM

keis added a commit that referenced this pull request Nov 25, 2015
@keis keis merged commit 9029a15 into eremetic-framework:master Nov 25, 2015
@keis keis deleted the filter-offers branch November 25, 2015 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants