mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-27 04:16:37 +08:00
feat: only update midjourney task on master node
(cherry picked from commit 4eb6217bc0
)
This commit is contained in:
parent
cf12907b07
commit
b173e1e4ce
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user