Browse Source

restart duration

tags/v1.22.2.1^2
lewis 3 years ago
parent
commit
7d8ffa5bde
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      modules/modelarts/resty.go

+ 1
- 1
modules/modelarts/resty.go View File

@@ -275,7 +275,7 @@ sendjob:
SetHeader("Content-Type", "application/json").
SetAuthToken(TOKEN).
SetResult(&result).
Post(HOST + "/v1/" + setting.ProjectID + urlNotebook2 + "/" + jobID + "/" + param.Action)
Post(HOST + "/v1/" + setting.ProjectID + urlNotebook2 + "/" + jobID + "/" + param.Action + "?duration=" + strconv.Itoa(autoStopDurationMs))

if err != nil {
return &result, fmt.Errorf("resty ManageNotebook2: %v", err)


Loading…
Cancel
Save