Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix executor cleanup #386

Merged
merged 4 commits into from
Jan 13, 2015
Merged

Fix executor cleanup #386

merged 4 commits into from
Jan 13, 2015

Conversation

tpetr
Copy link
Contributor

@tpetr tpetr commented Jan 8, 2015

SingularityExecutorCleanup was using a deprecated endpoint to load tasks for a specific slave by its hostname. This PR changes the code to use the endpoint that looks up tasks by slave ID.

@wsorenson

@tpetr
Copy link
Contributor Author

tpetr commented Jan 8, 2015

(tested successfully in mesos_test_3x5 cluster at HubSpot)

return singularityClient.getActiveTasks(JavaUtils.getHostAddress());
} catch (SocketException e) {
throw Throwables.propagate(e);
final HttpRequest request = HttpRequest.newBuilder().setUrl(String.format(LOCAL_SLAVE_STATE_URL_FORMAT, JavaUtils.getHostAddress())).build();
Copy link
Contributor

Choose a reason for hiding this comment

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

shouldn't this be part of our mesos client?

tpetr added a commit that referenced this pull request Jan 13, 2015
@tpetr tpetr merged commit 39454bb into master Jan 13, 2015
@tpetr tpetr deleted the fix-executor-cleanup branch April 19, 2015 20:51
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants