Pārlūkot izejas kodu

Increate timeout for ratecardapi to 5 minutes (#2990)

Timeout of 1 minute is not enough to complete the ratecardQuery

Signed-off-by: Duncan Bakker <62943186+duncan485@users.noreply.github.com>
Duncan Bakker 1 gadu atpakaļ
vecāks
revīzija
09e2f1d384
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      pkg/cloud/azure/provider.go

+ 1 - 1
pkg/cloud/azure/provider.go

@@ -849,7 +849,7 @@ func (az *Azure) DownloadPricingData() error {
 	// rate-card client is old, it can hang indefinitely in some cases
 	// this happens on the main thread, so it may block the whole app
 	// there is can be a better way to set timeout for the client
-	ctx, cancel := context.WithTimeout(context.TODO(), 60*time.Second)
+	ctx, cancel := context.WithTimeout(context.TODO(), 300*time.Second)
 	defer cancel()
 	result, err := rcClient.Get(ctx, rateCardFilter)
 	if err != nil {