|
|
@@ -239,7 +239,7 @@ func GenerateTask(ctx *context.Context, displayJobName, jobName, image, command, |
|
|
|
return nil |
|
|
|
} |
|
|
|
|
|
|
|
func RestartTask(ctx *context.Context, task *models.Cloudbrain, newJobID *string) error { |
|
|
|
func RestartTask(ctx *context.Context, task *models.Cloudbrain, newID *string) error { |
|
|
|
dataActualPath := setting.Attachment.Minio.RealPath + |
|
|
|
setting.Attachment.Minio.Bucket + "/" + |
|
|
|
setting.Attachment.Minio.BasePath + |
|
|
@@ -361,7 +361,8 @@ func RestartTask(ctx *context.Context, task *models.Cloudbrain, newJobID *string |
|
|
|
return err |
|
|
|
} |
|
|
|
|
|
|
|
*newJobID = jobID |
|
|
|
idString := strconv.FormatInt(newTask.ID, 10) |
|
|
|
*newID = idString |
|
|
|
|
|
|
|
return nil |
|
|
|
} |