|
|
@@ -87,7 +87,12 @@ func (o *OctopusHttp) Execute(ctx context.Context, option *option.AiOption, mode |
|
|
if option.AlgorithmId == "" { |
|
|
if option.AlgorithmId == "" { |
|
|
return nil, errors.New("algorithmId is empty") |
|
|
return nil, errors.New("algorithmId is empty") |
|
|
} |
|
|
} |
|
|
option.Cmd = option.Cmd + SemiColon + Python + option.AlgorithmId |
|
|
|
|
|
|
|
|
if option.Cmd != "" { |
|
|
|
|
|
option.Cmd = option.Cmd + SemiColon + Python + option.AlgorithmId |
|
|
|
|
|
} else { |
|
|
|
|
|
option.Cmd = Python + option.AlgorithmId |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
option.ResourceId = "9e2feeae30e04492a4298755179f2ae0" |
|
|
option.ResourceId = "9e2feeae30e04492a4298755179f2ae0" |
|
|
task, err := o.SubmitTask(ctx, option.ImageId, option.Cmd, option.Envs, option.Params, option.ResourceId, option.DatasetsId, option.AlgorithmId, option.TaskType) |
|
|
task, err := o.SubmitTask(ctx, option.ImageId, option.Cmd, option.Envs, option.Params, option.ResourceId, option.DatasetsId, option.AlgorithmId, option.TaskType) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
|