2 Commits

Author SHA1 Message Date
matst80
a491b0107b remove dead process
All checks were successful
Build and Publish / BuildAndDeploy (push) Successful in 1m53s
2024-11-11 19:08:48 +01:00
matst80
5016556dec longer grace period 2024-11-11 19:06:46 +01:00
2 changed files with 1 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ spec:
lifecycle:
preStop:
exec:
command: ["sleep", "5"]
command: ["sleep", "15"]
ports:
- containerPort: 8080
name: web

View File

@@ -414,14 +414,6 @@ func (p *SyncedPool) AddRemote(host string) error {
}
}
}()
go func() {
for range client.Errors {
if client.ErrorCount > 3 {
log.Printf("Error count exceeded, removing remote %s", host)
p.RemoveHost(&remote)
}
}
}()
return p.addRemoteHost(host, &remote)
}