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