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

Job.Plan endpoint #1168

Merged
merged 20 commits into from
May 16, 2016
Merged

Job.Plan endpoint #1168

merged 20 commits into from
May 16, 2016

Conversation

dadgar
Copy link
Contributor

@dadgar dadgar commented May 12, 2016

This PR implements the Plan endpoint and adds:

  • Scheduler annotations of desired results
  • An in-memory planner
  • A plan endpoint and associated routing and api/ support

reply.Diff = jobDiff
}

reply.Cas = index
Copy link
Member

Choose a reason for hiding this comment

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

I would just call it the JobModifyIndex instead of CAS since that is much clearer

@armon
Copy link
Member

armon commented May 16, 2016

LGTM!

}

// Validate the driver configurations.
for _, tg := range job.TaskGroups {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't this logic move into job.Validate as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not quite, it creates a circular dependency

@diptanu
Copy link
Contributor

diptanu commented May 16, 2016

LGTM

@dadgar dadgar merged commit af77254 into master May 16, 2016
@dadgar dadgar deleted the f-plan-endpoint branch May 16, 2016 20:15
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 24, 2023
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.

None yet

3 participants