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

Added a script to drain and kill a marathon app as gracefully as possible #143

Merged
merged 6 commits into from
Jan 21, 2016

Conversation

mjksmith
Copy link
Contributor

@mjksmith mjksmith commented Jan 8, 2016

Added a script to drain and kill a marathon app.


if not marathon_tools.is_app_id_running(app_id=full_appid, client=client):
print("Couldn't find an app named {0}".format(full_appid))
quit()
Copy link
Contributor

Choose a reason for hiding this comment

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

use sys.exit(1) here.

@Rob-Johnson
Copy link
Contributor

fine first pass, some tests would be good though.

@mjksmith mjksmith changed the title PAASTA-1889 Added a script to drain and kill a marathon app as gracefully as possible Jan 8, 2016
@@ -394,6 +395,15 @@ def get_healthcheck_mode(self, _):
# Healthchecks are not supported yet in chronos
return None

def get_desired_state_human(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this.. just a bad rebase/merge? This should be in master already.

@mjksmith mjksmith force-pushed the PAASTA-1889 branch 3 times, most recently from b709db7 to d3e67d3 Compare January 14, 2016 21:13
@solarkennedy
Copy link
Contributor

double check the tests and ship

mjksmith added a commit that referenced this pull request Jan 21, 2016
Added a script to drain and kill a marathon app as gracefully as possible
@mjksmith mjksmith merged commit f21d69d into master Jan 21, 2016
@mjksmith mjksmith deleted the PAASTA-1889 branch January 21, 2016 19:23
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.

3 participants