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

Improve error messages dealing with deleted experiments #814

Merged
merged 5 commits into from Jan 17, 2019

Conversation

sueann
Copy link
Contributor

@sueann sueann commented Jan 16, 2019

In particular set_experiment and create_experiment to return more descriptive error messages when they are called with a name for an experiment that already exists but has been deleted. Currently:

  • set_experiment will succeed but following start_run calls will fail because the experiment is not active.
  • create_experiment will fail saying that there is already an experiment with the same name.
    With this PR:
  • set_experiment will not succeed, with an error message saying there is a deleted experiment with the same name.
  • create_experiment will fail saying that there is already a deleted experiment with the same name.

Added unit tests to cover these code paths.

@sueann sueann requested a review from mparkhe January 16, 2019 20:25
Copy link
Contributor

@mparkhe mparkhe left a comment

Choose a reason for hiding this comment

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

A tiny nit, but LGTM otherwise...

raise MlflowException(
"Experiment '%s' already exists in deleted state. "
"You can restore the experiment, or permanently delete the experiment "
"from the .trash folder to create a new one." % experiment.name,
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense to word it something like

from the .trash folder (under tracking server root folder) before
creating a new one with the same name.

@sueann
Copy link
Contributor Author

sueann commented Jan 17, 2019

Test error looks spurious and it passed before the nit fix, so merging. Thanks @mparkhe !

@sueann sueann merged commit 3a37840 into mlflow:master Jan 17, 2019
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

2 participants