Skip to content

Conversation

@dperny
Copy link
Collaborator

@dperny dperny commented Nov 1, 2018

- What I did

Forward ports the changes in #2725 to the new allocator.

- How I did it

Rewrote portions of the codebase concerned with node allocation.

- How to test it

Includes automated tests

Forward ports the changes in moby#2725 to the new allocator.

Signed-off-by: Drew Erny <[email protected]>
service := store.GetService(tx, t.ServiceID)
if service != nil {
services = append(services, service)
// only new tasks need to be allocated. However, if a task
Copy link
Contributor

Choose a reason for hiding this comment

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

Not gonna lie, this 450 line-function is a bit hard to follow... Might be worthwhile to break it up a little bit?

Copy link
Contributor

Choose a reason for hiding this comment

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

(comment on the whole processPendingAllocations func, not just this line)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants