e0fc7005738c0185768f67cc4fc67f6dc3ee5fb1,polyaxon/scheduler/notebook_scheduler.py,,start_notebook,#Any#,16
Before Change
message="Could not start notebook encountered an {} exception.".format(
e.__class__.__name__
))
return
notebook.definition = get_job_definition(results)
notebook.save()
After Change
namespace=settings.K8S_NAMESPACE,
in_cluster=True)
error = {}
try:
allow_commits = False
if settings.REPOS_CLAIM_NAME or notebook.node_selector:
allow_commits = True
results = spawner.start_notebook(image=job_docker_image,
persistence_outputs=notebook.persistence_outputs,
persistence_data=notebook.persistence_data,
outputs_refs_jobs=notebook.outputs_refs_jobs,
outputs_refs_experiments=notebook.outputs_refs_experiments,
resources=notebook.resources,
node_selector=notebook.node_selector,
affinity=notebook.affinity,
tolerations=notebook.tolerations,
allow_commits=allow_commits)
notebook.definition = get_job_definition(results)
notebook.save()
return
except ApiException:
_logger.error("Could not start notebook, please check your polyaxon spec.",
exc_info=True)
error = {
"raised": True,
"traceback": traceback.format_exc(),
"message": "Could not start the job, encountered a Kubernetes ApiException.",
}
except VolumeNotFoundError as e:
_logger.error("Could not start the notebook, please check your volume definitions",
exc_info=True)
error = {
"raised": True,
"traceback": traceback.format_exc(),
"message": "Could not start the job, encountered a volume definition problem. %s" % e,
}
except Exception as e:
_logger.error("Could not start notebook, please check your polyaxon spec.",
exc_info=True)
error = {
"raised": True,
"traceback": traceback.format_exc(),
"message": "Could not start notebook encountered an {} exception.".format(
e.__class__.__name__)
}
finally:
if error.get("raised"):
notebook.set_status(
JobLifeCycle.FAILED,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 13
Instances
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
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/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/notebook_scheduler.py
Class Name:
Method Name: start_notebook