Run manual diagnostic attachments in the background

This commit is contained in:
ayurishchev committed 2026-11-22 20:50:39 +03:00
1 parent d845a5e4b6
commit 89ac4d5bcd
40 files changed
+1560 -58

No files matched your search

+5 -2
View File
@@ -54,6 +54,8 @@ type Orchestrator struct {
// value is ready to use.
scan scanJob
diagnosticWake chan struct{}
// Async makes Tick return without waiting for the slow per-address work
// (OpenStack calls): each address is handled in its own goroutine, so one
// slow cloud call never delays another validator. With Async=false (the
@@ -104,8 +106,9 @@ func New(d *db.DB, osClient openstack.FloatingIPClient, cfg *config.ControlAPI,
Agg: cfg.Aggregation,
Log: log,
ScanPageSize: cfg.OpenStack.ListPageSize,
hb: heartbeatState{startedAt: time.Now()},
ScanPageSize: cfg.OpenStack.ListPageSize,
diagnosticWake: make(chan struct{}, 1),
hb: heartbeatState{startedAt: time.Now()},
}
}