|
|
|
@@ -483,8 +483,7 @@ func createTrainJobUserImage(createJobParams models.CreateUserImageTrainJobParam |
|
|
|
var result models.CreateTrainJobResult |
|
|
|
|
|
|
|
retry := 0 |
|
|
|
log.Info("abcd", createJobParams) |
|
|
|
fmt.Print("abcd", createJobParams) |
|
|
|
|
|
|
|
sendjob: |
|
|
|
res, err := client.R(). |
|
|
|
SetHeader("Content-Type", "application/json"). |
|
|
|
@@ -499,6 +498,7 @@ sendjob: |
|
|
|
|
|
|
|
req, _ := json.Marshal(createJobParams) |
|
|
|
log.Info("%s", req) |
|
|
|
log.Info("postapi detail: %s", string(req)) |
|
|
|
|
|
|
|
if res.StatusCode() == http.StatusUnauthorized && retry < 1 { |
|
|
|
retry++ |
|
|
|
@@ -544,9 +544,7 @@ func createTrainJob(createJobParams models.CreateTrainJobParams) (*models.Create |
|
|
|
var result models.CreateTrainJobResult |
|
|
|
|
|
|
|
retry := 0 |
|
|
|
|
|
|
|
log.Info("abcd", createJobParams) |
|
|
|
fmt.Print("abcd", createJobParams) |
|
|
|
log.Info("postapi detail: %s", createJobParams) |
|
|
|
|
|
|
|
sendjob: |
|
|
|
res, err := client.R(). |
|
|
|
@@ -759,6 +757,7 @@ func CreateTrainJobConfig(req models.CreateConfigParams) (*models.CreateTrainJob |
|
|
|
var result models.CreateTrainJobConfigResult |
|
|
|
|
|
|
|
retry := 0 |
|
|
|
log.Info("postapi detail: %s", req) |
|
|
|
|
|
|
|
sendjob: |
|
|
|
res, err := client.R(). |
|
|
|
|