|
|
|
@@ -72,7 +72,7 @@ func isNoteBookReady(task *models.Cloudbrain) bool { |
|
|
|
if res.StatusCode == http.StatusOK { |
|
|
|
|
|
|
|
count := noteBookOKMap[task.ID] |
|
|
|
if count < successfulCount-1 || (noteBookFailMap[task.ID]==0 || count < maxSuccessfulCount-1){ |
|
|
|
if count < successfulCount-1 || (noteBookFailMap[task.ID]==0 && count < maxSuccessfulCount-1){ |
|
|
|
noteBookOKMap[task.ID] = count + 1 |
|
|
|
return false |
|
|
|
} else { |
|
|
|
|