Browse Source

debug

tags/v1.22.6.2
lewis 3 years ago
parent
commit
964b5268f2
2 changed files with 4 additions and 5 deletions
  1. +3
    -3
      routers/repo/grampus.go
  2. +1
    -2
      templates/repo/grampus/trainjob/npu/new.tmpl

+ 3
- 3
routers/repo/grampus.go View File

@@ -612,7 +612,7 @@ func generateCommand(repoName, processorType, codeRemotePath, dataRemotePath, bo
}

//check download result
commandCheckRes := "bash -c \"[[ $? -eq 0 ]] && exit 0 || exit -1;\""
commandCheckRes := "bash -c \"[[ $? -eq 0 ]] && exit 0 || exit -1;\";"
command += commandCheckRes

//unzip code & dataset
@@ -624,10 +624,10 @@ func generateCommand(repoName, processorType, codeRemotePath, dataRemotePath, bo
command += commandUnzip

//check unzip result
commandCheckRes = "bash -c \"[[ $? -eq 0 ]] && exit 0 || exit -1;\""
commandCheckRes = "bash -c \"[[ $? -eq 0 ]] && exit 0 || exit -1;\";"
command += commandCheckRes

command += "echo \"unzip finished;start to exec code;\""
command += "echo \"unzip finished;start to exec code;\";"

//exec code
var parameters models.Parameters


+ 1
- 2
templates/repo/grampus/trainjob/npu/new.tmpl View File

@@ -216,8 +216,7 @@
{{template "base/footer" .}}

<script>
let url_href = window.location.pathname.split('create')[0]
$(".ui.button").attr('href',url_href)
$('select.dropdown')
.dropdown();



Loading…
Cancel
Save