|
|
|
@@ -2,6 +2,7 @@ package cloudbrainTask |
|
|
|
|
|
|
|
import ( |
|
|
|
"net/http" |
|
|
|
"strconv" |
|
|
|
|
|
|
|
"code.gitea.io/gitea/models" |
|
|
|
"code.gitea.io/gitea/modules/cloudbrain" |
|
|
|
@@ -76,6 +77,7 @@ func isNoteBookReady(task *models.Cloudbrain) bool { |
|
|
|
noteBookOKMap[task.ID] = count + 1 |
|
|
|
return false |
|
|
|
} else { |
|
|
|
log.Info("notebook success count:"+strconv.Itoa(count)+",fail count:"+strconv.Itoa(count)) |
|
|
|
delete(noteBookOKMap, task.ID) |
|
|
|
delete(noteBookFailMap, task.ID) |
|
|
|
return true |
|
|
|
|