Skip to content

Commit c4dfcd4

Browse files
authored
Burst observatory: Fix init check (#6221)
#6106 (comment)
1 parent cb8cd04 commit c4dfcd4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

app/observatory/burst/healthping.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,16 @@ func (h *HealthPing) StartScheduler(selector func() ([]string, error)) {
9696
ticker := time.NewTicker(interval)
9797
h.ticker = ticker
9898

99+
// init run to get a fast check result
100+
go func() {
101+
tags, err := selector()
102+
if err != nil {
103+
errors.LogWarning(h.ctx, "error select outbounds for initial health check: ", err)
104+
return
105+
}
106+
h.Check(tags)
107+
}()
108+
99109
go func() {
100110
for {
101111
go func() {

0 commit comments

Comments
 (0)