ai cooking
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Drainingress (#457)

* get user id on the logged context

* fumpt

* shutdown sleep

* ugh

---------

Co-authored-by: paul miller <paul.miller>

authored by

Paul Miller
paul miller
and committed by
GitHub
730b62b8 c87e4956

+3 -1
+3 -1
cmd/careme/web.go
··· 15 15 "careme/internal/actowiz" 16 16 "careme/internal/admin" 17 17 "careme/internal/auth" 18 - cachepkg "careme/internal/cache" 19 18 "careme/internal/config" 20 19 "careme/internal/ingredients" 21 20 "careme/internal/locations" ··· 27 26 "careme/internal/templates" 28 27 "careme/internal/users" 29 28 "careme/internal/watchdog" 29 + 30 + cachepkg "careme/internal/cache" 30 31 31 32 utypes "careme/internal/users/types" 32 33 ) ··· 186 187 187 188 func gracefulShutdown(svr *http.Server, recipesWait func()) error { 188 189 // Give outstanding requests 25 seconds to complete (kubernetes has 30 second grace period) 190 + time.Sleep(5 * time.Second) // buffer to allow ingress ot update. only needed in prod 189 191 ctx, cancel := context.WithTimeout(context.Background(), 25*time.Second) 190 192 defer cancel() 191 193