fix: 优化 mj 获取进度

This commit is contained in:
Xyfacai
2023-12-23 23:14:58 +08:00
parent 7c4719b6ee
commit fd4ef086dc
4 changed files with 212 additions and 11 deletions

View File

@@ -81,7 +81,7 @@ func main() {
}
go controller.AutomaticallyTestChannels(frequency)
}
go controller.UpdateMidjourneyTask()
go controller.UpdateMidjourneyTaskBulk()
if os.Getenv("BATCH_UPDATE_ENABLED") == "true" {
common.BatchUpdateEnabled = true
common.SysLog("batch update enabled with interval " + strconv.Itoa(common.BatchUpdateInterval) + "s")