Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Do NOT use go-routine otherwise would cause "database locked" in underlying SQLite

天舟09b76a558608
diff --git a/server/anomaly_scanner.go b/server/anomaly_scanner.go
index ebe779f033..22cec25af3 100644
--- a/server/anomaly_scanner.go
+++ b/server/anomaly_scanner.go
@@ -98,7 +98,8 @@ func (s *AnomalyScanner) Run() error {
runningTasks[instance.ID] = true
mu.Unlock()
- go func(instance *api.Instance) {
+ // Do NOT use go-routine otherwise would cause "database locked" in underlying SQLite
+ func(instance *api.Instance) {
s.l.Debug("Scan instance anomaly", zap.String("instance", instance.Name))
defer func() {
mu.Lock()