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

Add update_apps method to client #136

Merged
merged 1 commit into from
Aug 10, 2016

Conversation

moonkev
Copy link
Contributor

@moonkev moonkev commented Aug 10, 2016

Currently the python API only supports updating a single app in one call. The REST API however, support a PUT call to the /v2/apps path that allows for updating several apps in one go. This PR exposes this call in the form of an update_apps function which takes in a list of MarathonApp objects. Taking the possible convenience aside for a moment, my actual motivation for this was performance. We perform update operations on 10s of applications at a time. Doing these one by one would take up to a few minutes. Implementing this has trimmed it down to under 10 seconds. Hopefully the actual implementation is up to common convention for marathon-python, but have no issue changing whatever and submitting a new PR if something is off and it will help to get this merged.

Thanks,
Kevin

@solarkennedy solarkennedy merged commit c5cefd9 into thefactory:master Aug 10, 2016
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