feat: only update midjourney task on master node

This commit is contained in:
1808837298@qq.com
2024-06-15 01:11:03 +08:00
parent 3085e512cd
commit 6b91f85400
+3
View File
@@ -19,6 +19,9 @@ import (
) )
func UpdateMidjourneyTaskBulk() { func UpdateMidjourneyTaskBulk() {
if !common.IsMasterNode {
return
}
//imageModel := "midjourney" //imageModel := "midjourney"
ctx := context.TODO() ctx := context.TODO()
for { for {