feat: add UPDATE_TASK env
This commit is contained in:
1 parent
9def2c6cd8
commit
e6de0c0bae
3 files changed
+5
-1
No files matched your search
@@ -9,6 +9,7 @@ import (
|
||||
"log"
|
||||
"net/http"
|
||||
"one-api/common"
|
||||
"one-api/constant"
|
||||
"one-api/controller"
|
||||
"one-api/middleware"
|
||||
"one-api/model"
|
||||
@@ -89,7 +90,7 @@ func main() {
|
||||
}
|
||||
go controller.AutomaticallyTestChannels(frequency)
|
||||
}
|
||||
if common.IsMasterNode {
|
||||
if common.IsMasterNode && constant.UpdateTask {
|
||||
common.SafeGoroutine(func() {
|
||||
controller.UpdateMidjourneyTaskBulk()
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user