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

687 expose recent scheduling decisions #1130

Conversation

abhay-agarwal
Copy link

This creates a kv-store for data about declined offers for apps. If an
app’s resource requirements cannot be supplied by the current system,
there should eventually be some notification back to the executor.

Note: Manually adding event types to a bucket style method isn’t fun.

This creates a kv-store for data about declined offers for apps. If an
app’s resource requirements cannot be supplied by the current system,
there should eventually be some notification back to the executor.

Note: Manually adding event types to a bucket style method isn’t fun.
def provideTaskOffersDeclinedRepository(
state: State,
conf: MarathonConf,
registry: MetricRegistry): TaskOffersDeclinedRepository = {
Copy link
Contributor

Choose a reason for hiding this comment

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

These parameters are unused, please remove them.

@drexin
Copy link
Contributor

drexin commented Feb 9, 2015

Thanks for your contribution. Please see my comments. Could you also please add an endpoint to retrieve the data and add it to the docs? And please squash all this into a single commit, thanks!

case (task, ports) =>
val taskBuilder = task.toBuilder
taskBuilder.build -> ports
builder.buildIfMatches(offer) match {
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this pattern match doesn't do anything. In both cases, the result (or the equivalent) of the call to buildIfMatches is returned. Why not just return that value instead?

@ConnorDoyle ConnorDoyle self-assigned this Feb 11, 2015
@ConnorDoyle ConnorDoyle added this to the 0.8.1 milestone Feb 11, 2015
@drexin drexin modified the milestones: 0.8.1, 0.8.2 Feb 24, 2015
@ConnorDoyle
Copy link
Contributor

This PR addresses #937.

@ConnorDoyle
Copy link
Contributor

@abhay-agarwal, this needs to be rebased on master.

@ConnorDoyle
Copy link
Contributor

@abhay-agarwal, do you plan to finish this up? We'd love to include this feature in 0.8.2 if possible.

@abhay-agarwal
Copy link
Author

I hadn't looked at this since the coding challenge. I think I could do a better job, but it would be a context-switch that i'm not ready for pre Q1 release!

kolloch pushed a commit that referenced this pull request Mar 27, 2015
commit 8e30672
Merge: 6f1aff3 3ec8f59
Author: Peter Kolloch <peter@mesosphere.com>
Date:   Fri Mar 27 16:07:26 2015 +0100

    Merge pull request #1107 from mesosphere/wip-1106-drexin

    fixes #1106 - Return empty HealthCheck result instead of None, when no r...
@drexin drexin modified the milestones: 0.9.0, 0.8.2 Mar 27, 2015
@drexin
Copy link
Contributor

drexin commented Apr 14, 2015

Closing this for now, feel free to update and re-open.

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