Update message of restart / resume
@@ -292,16 +292,16 @@ def restart(ctx, copy, file, u): # pylint:disable=redefined-builtin
if copy:
response = PolyaxonClients().experiment.copy(
user, project_name, _experiment, config=config, update_code=update_code)
+ Printer.print_success('Experiment was copied with id {}'.format(response.id))
else:
response = PolyaxonClients().experiment.restart(
user, project_name, _experiment, config=config, update_code=update_code)
+ Printer.print_success('Experiment was restarted with id {}'.format(response.id))
except (PolyaxonHTTPError, PolyaxonShouldExitError) as e:
Printer.print_error('Could not restart experiment `{}`.'.format(_experiment))
Printer.print_error('Error message `{}`.'.format(e))
sys.exit(1)
- get_experiment_details(response)
-
@experiment.command()
@click.option('--file', '-f', multiple=True, type=click.Path(exists=True),
@@ -337,14 +337,12 @@ def resume(ctx, file, u): # pylint:disable=redefined-builtin
try:
response = PolyaxonClients().experiment.resume(
user, project_name, _experiment, config=config, update_code=update_code)
+ Printer.print_success('Experiment was resumed with id {}'.format(response.id))
except (PolyaxonHTTPError, PolyaxonShouldExitError) as e:
Printer.print_error('Could not resume experiment `{}`.'.format(_experiment))
Printer.print_error('Error message `{}`.'.format(e))
sys.exit(1)
- get_experiment_details(response)
-
-
@experiment.command()
@click.option('--page', type=int, help="To paginate through the list of jobs.")
@click.pass_context
