#2196 fix-1941

Merged
lewis merged 3 commits from fix-1941 into V20220601 1 year ago
liuzx commented 1 year ago
https://git.openi.org.cn/OpenI/aiforge/issues/1941
liuzx requested review from lewis 1 year ago
lewis reviewed 1 year ago
models/cloudbrain.go
@@ -1567,2 +1567,4 @@
}

func GetCloudbrainRunCountByRepoID(repoID int64) (int, error) {
count, err := x.In("status", JobWaiting, JobRunning).And("repo_id = ?", repoID).Count(new(Cloudbrain))
lewis commented 1 year ago
云脑任务非终态有很多,建议使用not in 终态来判断。
liuzx commented 1 year ago
终态类型也很多,已更改为非终态来判断,沿用了GetCloudbrainNotebookCountByUserID的已经筛选过得非终态
lewis approved these changes 1 year ago
lewis merged commit c18c4a3db7 into V20220601 1 year ago

Reviewers

lewis approved these changes 1 year ago
The pull request has been merged as c18c4a3db7.
Sign in to join this conversation.
Loading…
There is no content yet.