File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ JWT_RSA_PUBLIC_KEY_LOC=sample/rsa-public
44HTTPS_CERT = sample/server.crt
55USERNAME = foo
66PASSWORD = bar
7-
87HTTPS_KEY = sample/server.key
98JWT_ROLE_KEY = role
109SET_SNIFFING = false
Original file line number Diff line number Diff line change @@ -301,17 +301,17 @@ func main() {
301301
302302 mainRouter := router .PathPrefix ("" ).Subrouter ()
303303
304- if PlanRefreshInterval == "" {
305- PlanRefreshInterval = "1"
306- } else {
304+ // default is hourly
305+ interval := "0 0 * * * *"
306+
307+ if PlanRefreshInterval != "" {
307308 _ , err := strconv .Atoi (PlanRefreshInterval )
308309 if err != nil {
309310 log .Fatal ("PLAN_REFRESH_INTERVAL must be an integer: " , err )
310311 }
312+ interval = "0 0 0-59/" + PlanRefreshInterval + " * * *"
311313 }
312314
313- interval := "@every " + PlanRefreshInterval + "h"
314-
315315 util .Billing = Billing
316316 util .HostedBilling = HostedBilling
317317 util .ClusterBilling = ClusterBilling
You can’t perform that action at this time.
0 commit comments