Browse Source

debug

tags/v1.22.6.2
lewis 3 years ago
parent
commit
dca0c5b9fa
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      routers/repo/grampus.go
  2. +1
    -1
      templates/user/dashboard/cloudbrains.tmpl

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

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

commandCode := "cd /cache/code/" + strings.ToLower(repoName) + ";/usr/bin/python3 " + bootFile + paramCode + ";"
commandCode := "cd /cache/code/" + strings.ToLower(repoName) + ";python " + bootFile + paramCode + ";"
command += commandCode

//get exec result


+ 1
- 1
templates/user/dashboard/cloudbrains.tmpl View File

@@ -94,7 +94,7 @@
</a>
{{else if eq .JobType "TRAIN"}}
<a class="title"
href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/{{if eq .ComputeResource "NPU"}}modelarts{{else}}cloudbrain{{end}}/train-job/{{$JobID}}"
href="{{AppSubUrl}}/{{.Repo.OwnerName}}/{{.Repo.Name}}/{{if eq .Cloudbrain.Type 1}}modelarts{{else if eq .Cloudbrain.Type 0}}cloudbrain{{else if eq .Cloudbrain.Type 2}}grampus{{end}}/train-job/{{$JobID}}"
title="{{.DisplayJobName}}" style="font-size: 14px;">
<span class="fitted"
style="width: 90%;vertical-align: middle;">{{.DisplayJobName}}</span>


Loading…
Cancel
Save