Update experiment scheduler volume error handling
@@ -411,6 +411,8 @@ def start_experiment(experiment):
'experiment',
experiment.id)
+ error = {}
+ try:
# Use spawners to start the experiment
spawner = spawner_class(project_name=project.unique_name,
experiment_name=experiment.unique_name,
@@ -431,8 +433,6 @@ def start_experiment(experiment):
use_sidecar=True,
sidecar_config=config.get_requested_params(to_str=True),
token_scope=token_scope)
- error = {}
- try:
response = spawner.start_experiment()
handle_experiment(experiment=experiment, spawner=spawner, response=response)
except ApiException as e:
