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

Marathon leadership-aware sync #20

Merged
merged 1 commit into from
Jan 8, 2016
Merged

Marathon leadership-aware sync #20

merged 1 commit into from
Jan 8, 2016

Conversation

dankraw
Copy link
Contributor

@dankraw dankraw commented Jan 7, 2016

Scheduled Marathon-Consul sync will run:

  1. only when specified node has leadership
  2. always when forced

// when
err := sync.SyncServices()
// then
assert.Error(t, err)
}

func newSync(marathon marathon.Marathoner, service consul.ConsulServices) *Sync {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure if this name is good. What's difference between newSync and New? newSync just call New with default config, name should represent it. How about NewWithDefaultConfig?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@dankraw dankraw force-pushed the leader_sync branch 7 times, most recently from 110eec4 to 598a388 Compare January 8, 2016 09:49
@dankraw
Copy link
Contributor Author

dankraw commented Jan 8, 2016

@janisz please review again :)

@janisz
Copy link
Contributor

janisz commented Jan 8, 2016

👍

dankraw added a commit that referenced this pull request Jan 8, 2016
Marathon leadership-aware sync
@dankraw dankraw merged commit 6fce910 into master Jan 8, 2016
@dankraw dankraw deleted the leader_sync branch January 8, 2016 11:55
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