feat: add ability to toggle uptime kuma

This commit is contained in:
trafficlunar 2024-11-27 20:29:29 +00:00
parent aaa8640aaf
commit 2a3da71bad
2 changed files with 7 additions and 1 deletions

View file

@ -1,6 +1,10 @@
package worker
import "os"
func StartWorkers() {
go StartLastFMWorker()
go StartStatusWorker()
if os.Getenv("STATUS") == "true" {
go StartStatusWorker()
}
}