feat(storage): add native PostgreSQL runtime and verified offline application import
Build and publish container images / images (push) Failing after 12m29s
Build and publish container images / images (push) Failing after 12m29s
This commit is contained in:
1 parent
96065d1e89
commit
0ba1dcfef0
243 files changed
+21441
-3090
No files matched your search
@@ -41,13 +41,18 @@ func (s *Server) zombieMaintenanceGrace() (int64, error) {
|
||||
}
|
||||
|
||||
func (s *Server) startGCWorker() {
|
||||
if !s.store.SupportsZombieGC() {
|
||||
return
|
||||
}
|
||||
grace, err := s.zombieMaintenanceGrace()
|
||||
if err != nil {
|
||||
log.Printf("zombie GC maintenance disabled: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
s.backgroundWG.Add(1)
|
||||
go func() {
|
||||
defer s.backgroundWG.Done()
|
||||
|
||||
ticker :=
|
||||
time.NewTicker(
|
||||
@@ -57,7 +62,11 @@ func (s *Server) startGCWorker() {
|
||||
defer ticker.Stop()
|
||||
|
||||
for {
|
||||
<-ticker.C
|
||||
select {
|
||||
case <-s.backgroundCtx.Done():
|
||||
return
|
||||
case <-ticker.C:
|
||||
}
|
||||
|
||||
deleted, err :=
|
||||
s.store.PurgeZombieObjects(
|
||||
|
||||
Reference in new issue
Block a user