Skip to content

Commit

Permalink
No longer return all runs from the GetExperiment call in the MLflow s…
Browse files Browse the repository at this point in the history
…erver (mlflow#1766)
  • Loading branch information
dbczumar committed Aug 21, 2019
1 parent 3422b3c commit 05f1889
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 1 addition & 2 deletions mlflow/protos/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ service MlflowService {
};
}

// Get metadata for an experiment and a list of runs for the experiment.
// This method works on deleted experiments.
// Get metadata for an experiment. This method works on deleted experiments.
rpc getExperiment (GetExperiment) returns (GetExperiment.Response) {
option (rpc) = {
endpoints: [{
Expand Down
3 changes: 0 additions & 3 deletions mlflow/server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ def _get_experiment():
response_message = GetExperiment.Response()
experiment = _get_store().get_experiment(request_message.experiment_id).to_proto()
response_message.experiment.MergeFrom(experiment)
run_info_entities = _get_store().list_run_infos(request_message.experiment_id,
run_view_type=ViewType.ACTIVE_ONLY)
response_message.runs.extend([r.to_proto() for r in run_info_entities])
response = Response(mimetype='application/json')
response.set_data(message_to_json(response_message))
return response
Expand Down

0 comments on commit 05f1889

Please sign in to comment.