add delta sync before each reconcile, have it not repeat if it's been done in the last minute

This commit is contained in:
Miloš Jovanović 2026-09-24 20:01:01 -07:00
parent ccb6b3277d
commit f98a23418f
3 changed files with 22 additions and 0 deletions

View file

@ -9,6 +9,7 @@ import (
"strconv"
"strings"
"time"
"sync"
)
// User is the subset of an ST user record this worker cares about.
@ -53,6 +54,7 @@ type Server struct {
eligible map[string]bool
// runTimeout caps a single reconcile.
runTimeout time.Duration
syncMu sync.Mutex
}
func NewServer(st STClient, store Store, secret string, eligible map[string]bool) *Server {