|
|
@@ -1329,6 +1329,9 @@ func QueryModelTrainJobList(repoId int64) ([]*CloudbrainInfo, int, error) { |
|
|
|
cond = cond.And( |
|
|
|
builder.Eq{"job_type": "TRAIN"}, |
|
|
|
) |
|
|
|
cond = cond.And( |
|
|
|
builder.In("type", "0", "1"), |
|
|
|
) |
|
|
|
|
|
|
|
cloudbrains := make([]*CloudbrainInfo, 0) |
|
|
|
if err := sess.Select("job_id,display_job_name").Table(&Cloudbrain{}).Where(cond).OrderBy("created_unix DESC"). |
|
|
|