e0fc7005738c0185768f67cc4fc67f6dc3ee5fb1,polyaxon/scheduler/experiment_scheduler.py,,start_experiment,#Any#,386
Before Change
except ApiException as e:
_logger.error("Could not start the experiment, please check your polyaxon spec.",
exc_info=True)
experiment.set_status(
ExperimentLifeCycle.FAILED,
message="Could not start the experiment, encountered a Kubernetes ApiException.")
return
except VolumeNotFoundError as e:
_logger.error("Could not start the experiment, please check your volume definitions.",
exc_info=True)
experiment.set_status(
ExperimentLifeCycle.FAILED,
message="Could not start the experiment, "
"encountered a volume definition problem. %s" % e)
return False
except Exception as e:
_logger.error("Could not start the experiment, please check your polyaxon spec",
exc_info=True)
experiment.set_status(
ExperimentLifeCycle.FAILED,
message="Could not start the experiment encountered an {} exception.".format(
e.__class__.__name__
))
return
handle_experiment(experiment=experiment, spawner=spawner, response=response)
After Change
job_docker_image=job_docker_image,
use_sidecar=True,
sidecar_config=config.get_requested_params(to_str=True))
error = {}
try:
response = spawner.start_experiment()
handle_experiment(experiment=experiment, spawner=spawner, response=response)
except ApiException as e:
_logger.error("Could not start the experiment, please check your polyaxon spec.",
exc_info=True)
error = {
"raised": True,
"traceback": traceback.format_exc(),
"message": "Could not start the experiment, encountered a Kubernetes ApiException."
}
except VolumeNotFoundError as e:
_logger.error("Could not start the experiment, please check your volume definitions.",
exc_info=True)
error = {
"raised": True,
"traceback": traceback.format_exc(),
"message": "Could not start the experiment, "
"encountered a volume definition problem, %s." % e
}
except Exception as e:
_logger.error("Could not start the experiment, please check your polyaxon spec",
exc_info=True)
error = {
"raised": True,
"traceback": traceback.format_exc(),
"message": "Could not start the experiment encountered an {} exception.".format(
e.__class__.__name__)
}
finally:
if error.get("raised"):
experiment.set_status(
ExperimentLifeCycle.FAILED,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 16
Instances
Project Name: polyaxon/polyaxon
Commit Name: e0fc7005738c0185768f67cc4fc67f6dc3ee5fb1
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/experiment_scheduler.py
Class Name:
Method Name: start_experiment
Project Name: polyaxon/polyaxon
Commit Name: e0fc7005738c0185768f67cc4fc67f6dc3ee5fb1
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/experiment_scheduler.py
Class Name:
Method Name: start_experiment
Project Name: polyaxon/polyaxon
Commit Name: e0fc7005738c0185768f67cc4fc67f6dc3ee5fb1
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/tensorboard_scheduler.py
Class Name:
Method Name: start_tensorboard
Project Name: polyaxon/polyaxon
Commit Name: e0fc7005738c0185768f67cc4fc67f6dc3ee5fb1
Time: 2018-09-19
Author: mouradmourafiq@gmail.com
File Name: polyaxon/scheduler/notebook_scheduler.py
Class Name:
Method Name: start_notebook