Sfoglia il codice sorgente

make update loop 1h

AjayTripathy 6 anni fa
parent
commit
092e3f92a6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pkg/cloud/awsprovider.go

+ 1 - 1
pkg/cloud/awsprovider.go

@@ -521,7 +521,7 @@ func (aws *AWS) DownloadPricingData() error {
 				for {
 					aws.RIDataRunning = true
 					klog.Infof("Reserved Instance watcher running... next update in 1h")
-					time.Sleep(5 * time.Minute)
+					time.Sleep(time.Hour)
 					err := aws.GetReservationDataFromAthena()
 					if err != nil {
 						klog.Infof("Error updating RI data: %s", err.Error())