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

Receive events from Marathon & relay events to Consul. #2

Merged
merged 9 commits into from
Jul 13, 2015

Conversation

smn
Copy link
Contributor

@smn smn commented Jul 13, 2015

No description provided.

@smn
Copy link
Contributor Author

smn commented Jul 13, 2015

@miltontony & @Rizziepit first PR ready for review. Bare bones relay of events from Marathon to Consul, ignores any staging flags at this point. Next PR addresses flags.

@smn
Copy link
Contributor Author

smn commented Jul 13, 2015

Marathon events documented here: https://mesosphere.github.io/marathon/docs/event-bus.html
Consul HTTP API documented here: https://consul.io/docs/agent/http/agent.html

@smn
Copy link
Contributor Author

smn commented Jul 13, 2015

@bruskiza also pinging you, ready for review.

@smn
Copy link
Contributor Author

smn commented Jul 13, 2015

Oops, merged #3 into this one.

self.event_dispatch = {
'status_update_event': self.handle_status_update_event,
}
self.unknown_event_handler = self.handle_unknown_event

Choose a reason for hiding this comment

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

I'm wondering why the rename here? I see handle_unknown_event being used below but not unknown_event_handler.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, thought I needed to mock this out for tests, turns out not needed.

@miltontony
Copy link

👍 looks good

@Rizziepit
Copy link

+1 from me

@smn smn merged commit 29dcfe1 into develop Jul 13, 2015
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.

None yet

3 participants