Kevin Su created SUBMARINE-536:
----------------------------------

             Summary: Improving Exception Messages When CRUD experiment
                 Key: SUBMARINE-536
                 URL: https://issues.apache.org/jira/browse/SUBMARINE-536
             Project: Apache Submarine
          Issue Type: Improvement
          Components: K8s Submitter
            Reporter: Kevin Su
            Assignee: Kevin Su
             Fix For: 0.4.0


Should output more detail to end-users why the CRUD experiment failed.

When creating an experiment with the same experiment name, we only output 
*conflict* message
{noformat}
➜ curl -X POST -H "Content-Type: application/json" -d '
{
 "meta": {
 "name": "tf-mnist-json",
 "namespace": "default",
 "framework": "TensorFlow",
 "cmd": "python /var/tf_mnist/mnist_with_summaries.py --log_dir=/train/log 
--learning_rate=0.01 --batch_size=150"
 },
 "environment": {
 "image": "gcr.io/kubeflow-ci/tf-mnist-with-summaries:1.0"
 },
 "spec": {
 "Ps": {
 "replicas": 1,
 "resources": "cpu=1,memory=512M"
 },
 "Worker": {
 "replicas": 1,
 "resources": "cpu=1,memory=512M"
 }
 }
}
' http://127.0.0.1:8080/api/v1/experiment
{"status":"CONFLICT","code":409,"success":null,"message":"Conflict","result":null,"attributes":{}}%{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to